1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

gpasswd: add page (#2480)

This commit is contained in:
msdlisper 2018-10-30 03:39:36 -05:00 committed by Owen Voke
parent 9c7f70fdbb
commit 2fe3be3c92

23
pages/linux/gpasswd.md Normal file
View file

@ -0,0 +1,23 @@
# 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}}`