Initial commit for Tizen
[profile/extras/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.2 <http://docbook.sf.net/>
5 .\"      Date: 02/16/2011
6 .\"    Manual: System Management Commands
7 .\"    Source: System Management Commands
8 .\"  Language: English
9 .\"
10 .TH "GROUPDEL" "8" "02/16/2011" "System Management Commands" "System Management Commands"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 groupdel \- delete a group
32 .SH "SYNOPSIS"
33 .HP \w'\fBgroupdel\fR\ 'u
34 \fBgroupdel\fR \fIgroup\fR
35 .SH "DESCRIPTION"
36 .PP
37 The
38 \fBgroupdel\fR
39 command modifies the system account files, deleting all entries that refer to
40 \fIgroup\fR\&. The named group must exist\&.
41 .SH "CAVEATS"
42 .PP
43 You may not remove the primary group of any existing user\&. You must remove the user before you remove the group\&.
44 .PP
45 You should manually check all file systems to ensure that no files remain owned by this group\&.
46 .SH "CONFIGURATION"
47 .PP
48 The following configuration variables in
49 /etc/login\&.defs
50 change the behavior of this tool:
51 .PP
52 \fBMAX_MEMBERS_PER_GROUP\fR (number)
53 .RS 4
54 Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in
55 /etc/group
56 (with the same name, same password, and same GID)\&.
57 .sp
58 The default value is 0, meaning that there are no limits in the number of members in a group\&.
59 .sp
60 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\&.
61 .sp
62 If you need to enforce such limit, you can use 25\&.
63 .sp
64 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\&.
65 .RE
66 .SH "FILES"
67 .PP
68 /etc/group
69 .RS 4
70 Group account information\&.
71 .RE
72 .PP
73 /etc/gshadow
74 .RS 4
75 Secure group account information\&.
76 .RE
77 .SH "EXIT VALUES"
78 .PP
79 The
80 \fBgroupdel\fR
81 command exits with the following values:
82 .PP
83 \fI0\fR
84 .RS 4
85 success
86 .RE
87 .PP
88 \fI2\fR
89 .RS 4
90 invalid command syntax
91 .RE
92 .PP
93 \fI6\fR
94 .RS 4
95 specified group doesn\*(Aqt exist
96 .RE
97 .PP
98 \fI8\fR
99 .RS 4
100 can\*(Aqt remove user\*(Aqs primary group
101 .RE
102 .PP
103 \fI10\fR
104 .RS 4
105 can\*(Aqt update group file
106 .RE
107 .SH "SEE ALSO"
108 .PP
109 \fBchfn\fR(1),
110 \fBchsh\fR(1),
111 \fBpasswd\fR(1),
112 \fBgpasswd\fR(8),
113 \fBgroupadd\fR(8),
114 \fBgroupmod\fR(8),
115 \fBuseradd\fR(8),
116 \fBuserdel\fR(8),
117 \fBusermod\fR(8)