tizen 2.0
[external/shadow.git] / man / pl / userdel.8
1 '\" t
2 .\"     Title: userdel
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: Polecenia Zarządzania Systemem
7 .\"    Source: Polecenia Zarządzania Systemem
8 .\"  Language: Polish
9 .\"
10 .TH "USERDEL" "8" "07/24/2009" "Polecenia Zarządzania Systemem" "Polecenia Zarządzania Systemem"
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 "NAZWA"
22 userdel \- plik chroniony informacji o użytkownikach
23 .SH "SK\(/LADNIA"
24 .HP \w'\fBuserdel\fR\ 'u
25 \fBuserdel\fR [opcje] \fILOGIN\fR
26 .SH "OPIS"
27 .PP
28 The
29 \fBuserdel\fR
30 command modifies the system account files, deleting all entries that refer to the user name
31 \fILOGIN\fR\&. The named user must exist\&.
32 .SH "OPCJE"
33 .PP
34 Polecenie
35 \fBuserdel\fR
36 posiada następujące opcje:
37 .PP
38 \fB\-f\fR, \fB\-\-force\fR
39 .RS 4
40 This option forces the removal of the user account, even if the user is still logged in\&. It also forces
41 \fBuserdel\fR
42 to remove the user\'s home directory and mail spool, even if another user uses the same home directory or if the mail spool is not owned by the specified user\&. If
43 \fBUSERGROUPS_ENAB\fR
44 is defined to
45 \fIyes\fR
46 in
47 /etc/login\&.defs
48 and if a group exists with the same name as the deleted user, then this group will be removed, even if it is still the primary group of another user\&.
49 .sp
50
51 \fINote:\fR
52 This option is dangerous and may leave your system in an inconsistent state\&.
53 .RE
54 .PP
55 \fB\-h\fR, \fB\-\-help\fR
56 .RS 4
57 Wyświetlenie komunikatu pomocy i zakończenie dzia\(/lania\&.
58 .RE
59 .PP
60 \fB\-r\fR, \fB\-\-remove\fR
61 .RS 4
62 Files in the user\'s home directory will be removed along with the home directory itself and the user\'s mail spool\&. Files located in other file systems will have to be searched for and deleted manually\&.
63 .sp
64 The mail spool is defined by the
65 \fBMAIL_DIR\fR
66 variable in the
67 login\&.defs
68 file\&.
69 .RE
70 .SH "CONFIGURATION"
71 .PP
72 The following configuration variables in
73 /etc/login\&.defs
74 change the behavior of this tool:
75 .PP
76 \fBMAIL_DIR\fR (string)
77 .RS 4
78 The mail spool directory\&. This is needed to manipulate the mailbox when its corresponding user account is modified or deleted\&. If not specified, a compile\-time default is used\&.
79 .RE
80 .PP
81 \fBMAIL_FILE\fR (string)
82 .RS 4
83 Defines the location of the users mail spool files relatively to their home directory\&.
84 .RE
85 .PP
86 The
87 \fBMAIL_DIR\fR
88 and
89 \fBMAIL_FILE\fR
90 variables are used by
91 \fBuseradd\fR,
92 \fBusermod\fR, and
93 \fBuserdel\fR
94 to create, move, or delete the user\'s mail spool\&.
95 .PP
96 If
97 \fBMAIL_CHECK_ENAB\fR
98 is set to
99 \fIyes\fR, they are also used to define the
100 \fBMAIL\fR
101 environment variable\&.
102 .PP
103 \fBMAX_MEMBERS_PER_GROUP\fR (number)
104 .RS 4
105 Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in
106 /etc/group
107 (with the same name, same password, and same GID)\&.
108 .sp
109 The default value is 0, meaning that there are no limits in the number of members in a group\&.
110 .sp
111 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\&.
112 .sp
113 If you need to enforce such limit, you can use 25\&.
114 .sp
115 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\&.
116 .RE
117 .PP
118 \fBUSERDEL_CMD\fR (string)
119 .RS 4
120 If defined, this command is run when removing a user\&. It should remove any at/cron/print jobs etc\&. owned by the user to be removed (passed as the first argument)\&.
121 .sp
122 The return code of the script is not taken into account\&.
123 .sp
124 Here is an example script, which removes the user\'s cron, at and print jobs:
125 .sp
126 .if n \{\
127 .RS 4
128 .\}
129 .nf
130 #! /bin/sh
131
132 # Check for the required argument\&.
133 if [ $# != 1 ]; then
134         echo "Usage: $0 username"
135         exit 1
136 fi
137
138 # Remove cron jobs\&.
139 crontab \-r \-u $1
140
141 # Remove at jobs\&.
142 # Note that it will remove any jobs owned by the same UID,
143 # even if it was shared by a different username\&.
144 AT_SPOOL_DIR=/var/spool/cron/atjobs
145 find $AT_SPOOL_DIR \-name "[^\&.]*" \-type f \-user $1 \-delete \e;
146
147 # Remove print jobs\&.
148 lprm $1
149
150 # All done\&.
151 exit 0
152       
153 .fi
154 .if n \{\
155 .RE
156 .\}
157 .sp
158 .RE
159 .PP
160 \fBUSERGROUPS_ENAB\fR (boolean)
161 .RS 4
162 Enable setting of the umask group bits to be the same as owner bits (examples: 022 \-> 002, 077 \-> 007) for non\-root users, if the uid is the same as gid, and username is the same as the primary group name\&.
163 .sp
164 If set to
165 \fIyes\fR,
166 \fBuserdel\fR
167 will remove the user\'s group if it contains no more members, and
168 \fBuseradd\fR
169 will create by default a group with the name of the user\&.
170 .RE
171 .SH "PLIKI"
172 .PP
173 /etc/group
174 .RS 4
175 Informacje o grupach użytkownik\('ow\&.
176 .RE
177 .PP
178 /etc/login\&.defs
179 .RS 4
180 Konfiguracja pakietu shadow\&.
181 .RE
182 .PP
183 /etc/passwd
184 .RS 4
185 Informacja o kontach użytkownik\('ow\&.
186 .RE
187 .PP
188 /etc/shadow
189 .RS 4
190 Informacje chronione o użytkownikach\&.
191 .RE
192 .SH "KOD ZAKOŃCZENIA"
193 .PP
194 Polecenie
195 \fBuserdel\fR
196 kończy dzia\(/lanie z następującymi wartościami kod\('ow zakończenia:
197 .PP
198 \fI0\fR
199 .RS 4
200 poprawne zakończenie dzia\(/lania programu
201 .RE
202 .PP
203 \fI1\fR
204 .RS 4
205 nie można zaktualizować pliku z has\(/lami
206 .RE
207 .PP
208 \fI2\fR
209 .RS 4
210 niepoprawna sk\(/ladnia polecenia
211 .RE
212 .PP
213 \fI6\fR
214 .RS 4
215 specified user doesn\'t exist
216 .RE
217 .PP
218 \fI8\fR
219 .RS 4
220 user currently logged in
221 .RE
222 .PP
223 \fI10\fR
224 .RS 4
225 nie można zaktualizować pliku z grupami
226 .RE
227 .PP
228 \fI12\fR
229 .RS 4
230 can\'t remove home directory
231 .RE
232 .SH "OSTRZEŻENIA"
233 .PP
234
235 \fBuserdel\fR
236 will not allow you to remove an account if there are running processes which belong to this account\&. In that case, you may have to kill those processes or lock the user\'s password or account and remove the account later\&. The
237 \fB\-f\fR
238 option can force the deletion of this account\&.
239 .PP
240 You should manually check all file systems to ensure that no files remain owned by this user\&.
241 .PP
242 You may not remove any NIS attributes on a NIS client\&. This must be performed on the NIS server\&.
243 .PP
244 If
245 \fBUSERGROUPS_ENAB\fR
246 is defined to
247 \fIyes\fR
248 in
249 /etc/login\&.defs,
250 \fBuserdel\fR
251 will delete the group with the same name as the user\&. To avoid inconsistencies in the passwd and group databases,
252 \fBuserdel\fR
253 will check that this group is not used as a primary group for another user, and will just warn without deleting the group otherwise\&. The
254 \fB\-f\fR
255 option can force the deletion of this group\&.
256 .SH "ZOBACZ TAKŻE"
257 .PP
258 \fBchfn\fR(1),
259 \fBchsh\fR(1),
260 \fBpasswd\fR(1),
261 \fBlogin.defs\fR(5),
262 \fBgpasswd\fR(8),
263 \fBgroupadd\fR(8),
264 \fBgroupdel\fR(8),
265 \fBgroupmod\fR(8),
266 \fBuseradd\fR(8),
267 \fBusermod\fR(8)\&.