1.1 KiB
1.1 KiB
RHCSA 9.3: Local groups and membership
Creating a group with members, changing its members, name and GID, and why a user's own group can't be deleted.
Before you start
The lab creates users alice and bob (password Lab-Pass-1). alice
is already in a supplementary group, projects, and bob in support;
they must stay there. Task 2 changes what task 1 made, so the lab runs a
small service, le-lab-watch, that notes the group every second for the
check. Do the tasks in order.
Tasks
- Create a group
saleswith GID 3000, and addaliceandbobto it as a supplementary group without changing their other groups. - Remove
bobfromsales, and rename the group tomarketwith GID 3001. - Try to delete
alice's private group (alice) while she exists, and write the error messagegroupdelprints to/root/lab-answers/3.
Hints
groupadd -g,usermod -aG(without-a,-Greplaces the list) orgpasswd -a;getent group sales,id alice.gpasswd -d,groupmod -n -g.groupdel alice 2>/root/lab-answers/3.