About Lesson
-
Adding Groups:
-
Command:
addgroup [groupname]
-
Example:
sudo addgroup developers
-
-
Adding Users to Groups:
-
Command:
usermod -aG [groupname] [username]
-
Example:
sudo usermod -aG developers john
-
-
Removing Groups:
-
Command:
delgroup [groupname]
-
Example:
sudo delgroup developers
-
-
Listing Groups:
-
Command:
groups [username]
-
Example:
groups john
(Lists groups the user belongs to).
-