gpasswd Command Examples

Administer /etc/group and /etc/gshadow. More information: https://manned.org/gpasswd.

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

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

gpasswd {{group}}

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

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