Name
gpasswd
Synopsis
gpasswd [options
]group
Administer /etc/group and /etc/gshadow entries. May only be used by an administrator. When used with a group name only, prompts for new group password. Defaults such as minimum and maximum group id values are specified in /etc/login.defs.
Options
- -a
Add a new group.
- -A users
Add administrative members.
- -d
Delete a group.
- -M users
Add group members.
- -R
Disable access to the group. Also prevent creation of a new group with the same name.
- -r
Remove the password entirely.
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.