Introduction
In this challenge, you will be using the usermod
, groupadd
, and groupdel
commands to manage user groups in a Linux environment.
In this challenge, you will be using the usermod
, groupadd
, and groupdel
commands to manage user groups in a Linux environment.
One of the most important tasks for a Linux administrator is to manage user groups. By creating groups, you can assign permissions and privileges to multiple users at once. In this step, you will learn how to create a new user group.
Your task is to create a new user group called sales
.
You can use the getent group sales
command to check if it was created successfully.
sales:x:1001:
Once you have created a new user group, the next step is to add users to the group. By doing this, you can grant permissions and privileges to multiple users at once. In this step, you will learn how to add users to a user group.
Your task is to add two users, john
and jane
, to the sales
group.
uid=1007(john) gid=1009(john) groups=1009(john),1008(sales)
uid=1008(jane) gid=1010(jane) groups=1010(jane),1008(sales)
Sometimes, you may need to delete a user group that is no longer needed. In this step, you will learn how to delete a user group.
Your task is to delete the sales
group.
Congratulations! You have successfully completed the Group of Linux on managing user groups using the usermod
, groupadd
, and groupdel
commands. These commands are essential for managing permissions and privileges on a Linux system. Keep practicing and exploring the various commands and options available to become proficient in Linux administration.