Difference between revisions of "Groupadd"

From HypertWiki
Jump to navigation Jump to search
 
m
Line 1: Line 1:
[[Category:Linux shell commands]]
[[Category:Linux shell commands]]
[[Techniques]]: [[Linux]]: [[Linux:groupadd|groupadd]]
[[Techniques]]: [[Linux]]: [[groupadd]]
==Text==
==Text==
===Name===
===Name===
Line 27: Line 27:
*'''/etc/gshadow''' - secure group account information
*'''/etc/gshadow''' - secure group account information
===See Also===
===See Also===
[[Linux:chfn|chfn]](1),  [[Linux:chsh|chsh]](1),  [[Linux:passwd|passwd]](1),  [[Linux:groupdel|groupdel]](8),  [[Linux:groupmod|groupmod]](8),  [[Linux:useradd|useradd]](8), [[Linux:userdel|userdel]](8), [[Linux:usermod|usermod]](8)
[[chfn]](1),  [[chsh]](1),  [[passwd]](1),  [[groupdel]](8),  [[groupmod]](8),  [[useradd]](8), [[userdel]](8), [[usermod]](8)
===Author===
===Author===
:Julianne Frances Haugh (jockgrrl@ix.netcom.com)
:Julianne Frances Haugh (jockgrrl@ix.netcom.com)
==Edit Log==
==Edit Log==
*2005-06-09 Transcribed from Red Hat 9 Linux manpages and KUbuntu (hoary) manpages.
*2005-06-09 Transcribed from Red Hat 9 Linux manpages and KUbuntu (hoary) manpages.

Revision as of 16:53, 9 June 2005

Techniques: Linux: groupadd

Text

Name

groupadd - Create a new group

Synopsis

groupadd [-g gid [-o]] [-r] [-f] 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. The options which apply to the groupadd command are
-g gid The numerical value of the group's ID. This value must be unique, unless the -o option is used. The value must be non-negative. The default is to use the smallest ID value greater than 500 and greater than every other group. Values between 0 and 499 are typically reserved for system accounts.
-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.
-f This is the force flag. This will cause groupadd to exit with an error when the group about to be added already exists on the system. If that is the case, the group won't be altered (or added again). This option also modifies the way -g option works. When you request a gid that it is not unique and you don't specify the -o option too, the group creation will fall back to the standard behavior (adding a group as if neither -g or -o options were specified).

This is an option added by Red Hat.

Files

  • /etc/group - group account information
  • /etc/gshadow - secure group account information

See Also

chfn(1), chsh(1), passwd(1), groupdel(8), groupmod(8), useradd(8), userdel(8), usermod(8)

Author

Julianne Frances Haugh (jockgrrl@ix.netcom.com)

Edit Log

  • 2005-06-09 Transcribed from Red Hat 9 Linux manpages and KUbuntu (hoary) manpages.