- The primary group is recorded in
/etc/passwd, supplementary ones in/etc/group;usermod -gchanges the first,-Gthe whole list of the second. - You add a group with
usermod -aGand remove one withgpasswd -d; look atidbefore and after. - Changing the account does not touch running processes: check granting and removal with a fresh process,
sudo -u. - At the start of the lesson the request
-G lab-writersset the supplementary list anew, and lab-readers dropped out of it.
Step 6 of 6 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson