Difference between revisions of "groupadd"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(Created page with "{{hdr/command/linux}} ==Basics== groupadd is a command to add a new user-group to a Linux system. * {{l/manpage}} for this system ==Archive== * /archive...")
 
(moved added material from old manpage to here)
Line 3: Line 3:
 
[[groupadd]] is a command to add a new [[Linux/groups|user-group]] to a Linux system.
 
[[groupadd]] is a command to add a new [[Linux/groups|user-group]] to a Linux system.
 
* {{l/manpage}} for this system
 
* {{l/manpage}} for this system
 +
==Notes==
 +
* On some systems, this command is not on the search path for executables, so you may need to use [[whereis]] to find it.
 +
* This command usually requires [[root (security)|root]] access.
 +
* A '''system account''' is generally an account that isn't logged into or used by users. Examples are audio, video, cdrom, dialout, scanner, staff, etc. It's not clear exactly what special handling these accounts may be receiving with Red Hat; see [[#Questions|Questions]].
 +
==Examples==
 +
* /usr/bin/groupadd ''newgrp''
 +
** Creates group ''newgrp''
 +
==Questions==
 +
*What special handling do system accounts receive under Red Hat? (See "notes" for known information about system accounts.)
 +
*The action of the -r option ("add a system account") is a little unclear -- does it create a system-type ''user'' account in addition to creating a [[Linux/groups|group]] account? (And if so, what is the account's name?) Or is it merely adding a special system attribute to the group account created? If the latter, then the purpose of such accounts remains even less clear, as group accounts are by definition never logged into.
 
==Archive==
 
==Archive==
 
* [[/archive/2005]]: 2005 documentation adapted from transcription of Red Hat 7.1 and Debian manpages
 
* [[/archive/2005]]: 2005 documentation adapted from transcription of Red Hat 7.1 and Debian manpages

Revision as of 19:00, 23 April 2017

Basics

groupadd is a command to add a new user-group to a Linux system.

Notes

  • On some systems, this command is not on the search path for executables, so you may need to use whereis to find it.
  • This command usually requires root access.
  • A system account is generally an account that isn't logged into or used by users. Examples are audio, video, cdrom, dialout, scanner, staff, etc. It's not clear exactly what special handling these accounts may be receiving with Red Hat; see Questions.

Examples

  • /usr/bin/groupadd newgrp
    • Creates group newgrp

Questions

  • What special handling do system accounts receive under Red Hat? (See "notes" for known information about system accounts.)
  • The action of the -r option ("add a system account") is a little unclear -- does it create a system-type user account in addition to creating a group account? (And if so, what is the account's name?) Or is it merely adding a special system attribute to the group account created? If the latter, then the purpose of such accounts remains even less clear, as group accounts are by definition never logged into.

Archive

  • /archive/2005: 2005 documentation adapted from transcription of Red Hat 7.1 and Debian manpages