1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-28 22:24:55 +02:00
tldr/pages/linux/gpasswd.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

415 B

gpasswd

Administer /etc/group and /etc/gshadow.

  • Define group administrators:

sudo gpasswd -A {{user1,user2}} {{group}}

  • Set the list of group members:

sudo gpasswd -M {{user1,user2}} {{group}}

  • Create a password for the named group:

gpasswd {{group}}

  • Add a user to the named group:

gpasswd -a {{user}} {{group}}

  • Remove a user from the named group:

gpasswd -d {{user}} {{group}}