1GROUPDEL(8) System Management Commands GROUPDEL(8)
2
3
4
6 groupdel - delete a group
7
9 groupdel 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 You may not remove the primary group of any existing user. You must
17 remove the user before you remove the group.
18
19 You should manually check all file systems to ensure that no files
20 remain owned by this group.
21
23 The following configuration variables in /etc/login.defs change the
24 behavior of this tool:
25
26 MAX_MEMBERS_PER_GROUP (number)
27 Maximum members per group entry. When the maximum is reached, a new
28 group entry (line) is started in /etc/group (with the same name,
29 same password, and same GID).
30
31 The default value is 0, meaning that there are no limits in the
32 number of members in a group.
33
34 This feature (split group) permits to limit the length of lines in
35 the group file. This is useful to make sure that lines for NIS
36 groups are not larger than 1024 characters.
37
38 If you need to enforce such limit, you can use 25.
39
40 Note: split groups may not be supported by all tools (even in the
41 Shadow toolsuite). You should not use this variable unless you
42 really need it.
43
45 /etc/group
46 Group account information.
47
48 /etc/gshadow
49 Secure group account information.
50
52 The groupdel command exits with the following values:
53
54 0
55 success
56
57 2
58 invalid command syntax
59
60 6
61 specified group doesn´t exist
62
63 8
64 can´t remove user´s primary group
65
66 10
67 can´t update group file
68
70 chfn(1), chsh(1), passwd(1), gpasswd(8), groupadd(8), groupmod(8),
71 useradd(8), userdel(8), usermod(8)
72
73
74
75System Management Commands 07/24/2009 GROUPDEL(8)