分类: LINUX
2011-05-16 16:35:18
File: *manpages*, Node: groupadd, Up: (dir)
GROUPADD(8) System Management Commands GROUPADD(8)
NAME
groupadd - create a new group
SYNOPSIS
groupadd [-g gid [-o]] [-r] [-f] [-K KEY=VALUE] group
DESCRIPTION
The groupadd command creates a new group account using the values
specified on the command line and the default values from the system.
The new group will be entered into the system files as needed.
OPTIONS
The options which apply to the groupadd command are:
-f This option causes to just exit with success status if the specified
group already exists. With -g, if specified GID already exists,
other (unique) GID is chosen (i.e. -g is turned off).
-r This flag instructs groupadd to add a system account. The first
available gid lower than 499 will be automatically selected unless
the -g option is also given on the command line. This is an option
added by Red Hat.
-g GID
The numerical value of the groupâ