Introduction
The LabEx R&D Team has one server where each team member has an account for daily routine jobs. Today, we have two new employees joining us, and we need to create their accounts.
The LabEx R&D Team has one server where each team member has an account for daily routine jobs. Today, we have two new employees joining us, and we need to create their accounts.
In this challenge, you need to add two new users and two new groups to the system. You can accomplish this either by creating users and groups separately or by using a single command that sets up everything at once.
dev
and test
.jack
with a home directory of /home/jack
, primary group dev
, and secondary group labex
.bob
with a home directory of /home/bob
, primary group test
, and secondary group labex
.labex
user, which has sudo
privileges and belongs to the labex
user group, to perform these tasks.dev
and test
are created before adding the users.After completing the tasks, you should be able to verify the results as follows:
jack
, the output should be similar to:$ id jack
uid=5001(jack) gid=5003(dev) groups=5003(dev),5000(labex)
bob
, the output should be similar to:$ id bob
uid=5002(bob) gid=5004(test) groups=5004(test),5000(labex)
In this challenge, you learned how to add new groups and users to your system. You practiced creating groups, creating user accounts with specific home directories and primary groups, and adding users to additional groups. These skills are essential for user management in Linux systems, particularly when onboarding new team members or managing access control.