Initialize Tizen 2.3
[external/shadow-utils.git] / man / groupdel.8
1 '\" t
2 .\"     Title: groupdel
3 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
5 .\"      Date: 07/24/2009
6 .\"    Manual: System Management Commands
7 .\"    Source: System Management Commands
8 .\"  Language: English
9 .\"
10 .TH "GROUPDEL" "8" "07/24/2009" "System Management Commands" "System Management Commands"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
15 .nh
16 .\" disable justification (adjust text to left margin only)
17 .ad l
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
21 .SH "NAME"
22 groupdel \- delete a group
23 .SH "SYNOPSIS"
24 .HP \w'\fBgroupdel\fR\ 'u
25 \fBgroupdel\fR \fIgroup\fR
26 .SH "DESCRIPTION"
27 .PP
28 The
29 \fBgroupdel\fR
30 command modifies the system account files, deleting all entries that refer to
31 \fIgroup\fR\&. The named group must exist\&.
32 .SH "CAVEATS"
33 .PP
34 You may not remove the primary group of any existing user\&. You must remove the user before you remove the group\&.
35 .PP
36 You should manually check all file systems to ensure that no files remain owned by this group\&.
37 .SH "CONFIGURATION"
38 .PP
39 The following configuration variables in
40 /etc/login\&.defs
41 change the behavior of this tool:
42 .PP
43 \fBMAX_MEMBERS_PER_GROUP\fR (number)
44 .RS 4
45 Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in
46 /etc/group
47 (with the same name, same password, and same GID)\&.
48 .sp
49 The default value is 0, meaning that there are no limits in the number of members in a group\&.
50 .sp
51 This feature (split group) permits to limit the length of lines in the group file\&. This is useful to make sure that lines for NIS groups are not larger than 1024 characters\&.
52 .sp
53 If you need to enforce such limit, you can use 25\&.
54 .sp
55 Note: split groups may not be supported by all tools (even in the Shadow toolsuite)\&. You should not use this variable unless you really need it\&.
56 .RE
57 .SH "FILES"
58 .PP
59 /etc/group
60 .RS 4
61 Group account information\&.
62 .RE
63 .PP
64 /etc/gshadow
65 .RS 4
66 Secure group account information\&.
67 .RE
68 .SH "EXIT VALUES"
69 .PP
70 The
71 \fBgroupdel\fR
72 command exits with the following values:
73 .PP
74 \fI0\fR
75 .RS 4
76 success
77 .RE
78 .PP
79 \fI2\fR
80 .RS 4
81 invalid command syntax
82 .RE
83 .PP
84 \fI6\fR
85 .RS 4
86 specified group doesn\'t exist
87 .RE
88 .PP
89 \fI8\fR
90 .RS 4
91 can\'t remove user\'s primary group
92 .RE
93 .PP
94 \fI10\fR
95 .RS 4
96 can\'t update group file
97 .RE
98 .SH "SEE ALSO"
99 .PP
100 \fBchfn\fR(1),
101 \fBchsh\fR(1),
102 \fBpasswd\fR(1),
103 \fBgpasswd\fR(8),
104 \fBgroupadd\fR(8),
105 \fBgroupmod\fR(8),
106 \fBuseradd\fR(8),
107 \fBuserdel\fR(8),
108 \fBusermod\fR(8)