Skip to content

Instantly share code, notes, and snippets.

@grajewsky
Created November 13, 2020 11:55
Show Gist options
  • Select an option

  • Save grajewsky/abac9791730816c6bfe6eb3004b02f1e to your computer and use it in GitHub Desktop.

Select an option

Save grajewsky/abac9791730816c6bfe6eb3004b02f1e to your computer and use it in GitHub Desktop.
Linux - Groups Management

Linux - Groups Management

1. Add Group

groupadd group_name

1. Group password

gpasswd group_name

Display groups password's cat /etc/gshadow

2. Add user to existing group

usermod -G group_name  username

3. Add user to existing group w/o removing

usermod -aG *group_name  *username

4. Delete user from group

gpasswd -d username  group

5. Delete group

groupdel  Group1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment