Debian 2: Users, Groups, Permissions

 

  1. Creating a new user
  2. Creating a new group
  3. Viewing existing users
  4. Viewing existing groups
  5. Adding an existing user to an existing group
  6. Adding an existing user to multiple existing groups
  7. Removing a user from a group
  8. Removing a user
  9. Removing a group

 

View Existing Groups

  1. $ less /etc/group
  2. $ getent group

Adding an existing User to an existing Group

  1. $ sudo usermod -a -G groupname username

Add an Existing User to Multiple Groups in One Command

  1. $ sudo usermod -a -G group1,group2 username

Resources:

  1. https://linuxize.com/post/how-to-list-groups-in-linux/

2 thoughts on “Debian 2: Users, Groups, Permissions

Leave a Reply