System Grab Bag

View all TLDR pages from Linux (or from all pages)

gpasswd

Administer /etc/group and /etc/gshadow. More information: https://manned.org/gpasswd.
  • 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}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.