1GROUPDEL(8) System Management Commands GROUPDEL(8)
2
3
4
6 groupdel - delete a group
7
9 groupdel [options] GROUP
10
12 The groupdel command modifies the system account files, deleting all
13 entries that refer to GROUP. The named group must exist.
14
16 The options which apply to the groupdel command are:
17
18 -h, --help
19 Display help message and exit.
20
21 -R, --root CHROOT_DIR
22 Apply changes in the CHROOT_DIR directory and use the configuration
23 files from the CHROOT_DIR directory.
24
26 You may not remove the primary group of any existing user. You must
27 remove the user before you remove the group.
28
29 You should manually check all file systems to ensure that no files
30 remain owned by this group.
31
33 The following configuration variables in /etc/login.defs change the
34 behavior of this tool:
35
36 MAX_MEMBERS_PER_GROUP (number)
37 Maximum members per group entry. When the maximum is reached, a new
38 group entry (line) is started in /etc/group (with the same name,
39 same password, and same GID).
40
41 The default value is 0, meaning that there are no limits in the
42 number of members in a group.
43
44 This feature (split group) permits to limit the length of lines in
45 the group file. This is useful to make sure that lines for NIS
46 groups are not larger than 1024 characters.
47
48 If you need to enforce such limit, you can use 25.
49
50 Note: split groups may not be supported by all tools (even in the
51 Shadow toolsuite). You should not use this variable unless you
52 really need it.
53
55 /etc/group
56 Group account information.
57
58 /etc/gshadow
59 Secure group account information.
60
62 The groupdel command exits with the following values:
63
64 0
65 success
66
67 2
68 invalid command syntax
69
70 6
71 specified group doesn't exist
72
73 8
74 can't remove user's primary group
75
76 10
77 can't update group file
78
80 chfn(1), chsh(1), passwd(1), gpasswd(8), groupadd(8), groupmod(8),
81 useradd(8), userdel(8), usermod(8).
82
83
84
85shadow-utils 4.1.5.1 03/14/2019 GROUPDEL(8)