mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:08:13 +00:00
Utilities: Add groupadd
This commit is contained in:
parent
927f6ea221
commit
21cb531be1
2 changed files with 130 additions and 0 deletions
38
Base/usr/share/man/man8/groupadd.md
Normal file
38
Base/usr/share/man/man8/groupadd.md
Normal file
|
@ -0,0 +1,38 @@
|
|||
## Name
|
||||
|
||||
groupadd - add a new group to the system group file
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**sh
|
||||
# groupadd [options] <group>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
This program adds a new group to the system.
|
||||
|
||||
This program must be run as root.
|
||||
|
||||
## Options
|
||||
|
||||
* `-g`, `--gid` _gid_: The group identifier for the new group. If not specified, an unused GID above `100` will be auto-generated.
|
||||
|
||||
## Exit Values
|
||||
|
||||
* 0 - Success
|
||||
* 1 - Couldn't update the group file
|
||||
* 3 - Invalid argument to option
|
||||
* 4 - GID already in use
|
||||
|
||||
## Files
|
||||
|
||||
* `/etc/group` - new group information (such GID) is appended to this file.
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
# groupadd -g 110 contributors
|
||||
# groupadd mainteners
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue