Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
System administration command. Create new group of accounts for the system.
Options
-f
Exit with error if group being added already exists. If a gid requested with -g already exists and the -o option has not been specified, assign a different gid as if -g had not been specified. This option is not available on all distributions.
-ggid
Assign numerical group ID. (By default, the first available number above 500 is used.) The value must be unique, unless the -o option is used.
--help
Display a help message.
-o
Accept a nonunique gid with the -g option.
-p,--password string
Use the string encrypted by crypt(3), as the initial password for the group.
-P,--path pathname
Specify the path for the group definition file. Normally, the file is placed in /etc/group.
-r,--system
Add a system account. Assign the first available number lower than 499.
--serviceservicename
Add the group to a special service category. Normally, this is "files," but it may also be "ldap."
--usage
Display a very short list of acceptable options for the command.