summaryrefslogtreecommitdiff
path: root/Base/usr
diff options
context:
space:
mode:
authorM4x1m3 <M4x1me@protonmail.com>2021-07-09 17:31:23 +0200
committerGunnar Beutner <gunnar@beutner.name>2021-07-15 11:16:58 +0200
commit39e622c400ad436b7da7252fd120b1909dea381f (patch)
tree6abe33c4078402dd318466d6db41969956d4954c /Base/usr
parent21cb531be1c3b82c1ec196706c6c2155bb52bb3f (diff)
downloadserenity-39e622c400ad436b7da7252fd120b1909dea381f.zip
Utilities: Add groupdel
Diffstat (limited to 'Base/usr')
-rw-r--r--Base/usr/share/man/man8/groupdel.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/Base/usr/share/man/man8/groupdel.md b/Base/usr/share/man/man8/groupdel.md
new file mode 100644
index 0000000000..133738e8f2
--- /dev/null
+++ b/Base/usr/share/man/man8/groupdel.md
@@ -0,0 +1,45 @@
+## Name
+
+groupdel - delete a group
+
+## Synopsis
+
+```**sh
+# groupdel <group>
+```
+
+## Description
+
+This program deletes a group in the system.
+
+This program must be run as root.
+
+## Caveats
+
+You may not remove the primary group of any existing user. You must remove the user before you remove the group.
+
+You should manually check all file systems to ensure that no files remain owned by this group.
+
+You should manually check all users to ensure that no user remain in this group.
+
+## Exit Values
+
+* 0 - Success
+* 1 - Couldn't update the group file
+* 6 - Specified group doesn't exist
+* 8 - Can't remove user's primary group
+
+## Files
+
+* `/etc/group` - group information (such as GID) in this file is deleted.
+
+## Examples
+
+```sh
+# groupdel alice
+```
+
+## See Also
+
+* [`useradd`(8)](groupadd.md)
+