Introduction
In this challenge, you will learn how to create, delete, and modify local groups on a Linux system. This is an essential skill for system administrators to manage user access and permissions effectively.
In this challenge, you will learn how to create, delete, and modify local groups on a Linux system. This is an essential skill for system administrators to manage user access and permissions effectively.
groupadd
command.developers
.After creating the new group, you should be able to see it in the output of the getent group
command:
developers:x:1001:
usermod
command.After adding the user "john" to the "developers" group, you should be able to see the group membership in the output of the id john
command:
uid=1002(john) gid=1002(john) groups=1002(john),1001(developers)
gpasswd
command.After removing the user "john" from the "developers" group, you should be able to see the updated group membership in the output of the id john
command:
uid=1002(john) gid=1002(john) groups=1002(john)
groupdel
command.After deleting the "developers" group, you should not be able to see it in the output of the getent group
command:
$ getent group developers
getent: developers: group not found
In this challenge, you learned how to create, add users to, remove users from, and delete local groups on a Linux system. These skills are essential for system administrators to manage user access and permissions effectively. You practiced using the groupadd
, usermod
, gpasswd
, and groupdel
commands to perform these tasks.