LinuxDevCenter.com
oreilly.comSafari Books Online.Conferences.

advertisement


Linux in a Nutshell

This directory of Linux commands is from Linux in a Nutshell, 5th Edition.

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.

Buy it now, or read it online on Safari Bookshelf.



groupadd

groupadd [options] group

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.

-g gid

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.

--service servicename

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.

-v,--version

Print the version number, then quit.


Linux Resources
  • Linux Online
  • The Linux FAQ
  • linux.java.net
  • Linux Kernel Archives
  • Kernel Traffic
  • DistroWatch.com


  • Sponsored by: