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.
dev
and test
.jack
with a home directory of /home/jack
and a primary group named dev
.bob
with a home directory of /home/bob
and a primary group named test
.jack
and bob
users to the labex
group.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.labex
group as a secondary group.After completing the tasks, you should be able to verify the results as follows:
jack
, the output similar to the following:$ id jack
uid=5001(jack) gid=5003(dev) groups=5003(dev),5000(labex)
bob
, the output similar to the following:$ 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.