summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorM4x1m3 <M4x1me@protonmail.com>2021-07-09 14:37:48 +0200
committerGunnar Beutner <gunnar@beutner.name>2021-07-15 11:16:58 +0200
commit21cb531be1c3b82c1ec196706c6c2155bb52bb3f (patch)
tree75dc42a40df5795b633ee368672e40e58c2b2efb /Base
parent927f6ea2211d20b521bf35136c55c0147ce48a4f (diff)
downloadserenity-21cb531be1c3b82c1ec196706c6c2155bb52bb3f.zip
Utilities: Add groupadd
Diffstat (limited to 'Base')
-rw-r--r--Base/usr/share/man/man8/groupadd.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/Base/usr/share/man/man8/groupadd.md b/Base/usr/share/man/man8/groupadd.md
new file mode 100644
index 0000000000..6a7c781b15
--- /dev/null
+++ b/Base/usr/share/man/man8/groupadd.md
@@ -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
+```
+