Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / pl / newusers.8
1 '\" t
2 .\"     Title: newusers
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: Polecenia Zarządzania Systemem
7 .\"    Source: Polecenia Zarządzania Systemem
8 .\"  Language: Polish
9 .\"
10 .TH "NEWUSERS" "8" "02/16/2011" "Polecenia Zarządzania Systemem" "Polecenia Zarządzania Systemem"
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 "NAZWA"
31 newusers \- wsadowa aktualizacja i tworzenie nowych użytkownik\('ow
32 .SH "SK\(/LADNIA"
33 .HP \w'\fBnewusers\fR\ 'u
34 \fBnewusers\fR [\fIopcje\fR\ \fInew_users\fR]
35 .SH "OPIS"
36 .PP
37 The
38 \fBnewusers\fR
39 command reads a file of user name and clear\-text password pairs and uses this information to update a group of existing users or to create new users\&. Each line is in the same format as the standard password file (see
40 \fBpasswd\fR(5)) with the exceptions explained below:
41 .PP
42 pw_name:pw_passwd:pw_uid:pw_gid:pw_gecos:pw_dir:pw_shell
43 .PP
44 \fIpw_name\fR
45 .RS 4
46 This is the name of the user\&.
47 .sp
48 It can be the name of a new user or the name of an existing user (or an user created before by
49 \fBnewusers\fR)\&. In case of an existing user, the user\*(Aqs information will be changed, otherwise a new user will be created\&.
50 .RE
51 .PP
52 \fIpw_passwd\fR
53 .RS 4
54 To pole zostanie zakodowane i użyte jako nowa wartość zakodowanego has\(/la\&.
55 .RE
56 .PP
57 \fIpw_uid\fR
58 .RS 4
59 This field is used to define the UID of the user\&.
60 .sp
61 If the field is empty, an new (unused) UID will be defined automatically by
62 \fBnewusers\fR\&.
63 .sp
64 If this field contains a number, this number will be used as the UID\&.
65 .sp
66 If this field contains the name of an existing user (or the name of an user created before by
67 \fBnewusers\fR), the UID of the specified user will be used\&.
68 .sp
69 If the UID of an existing user is changed, the files ownership of the user\*(Aqs file should be fixed manually\&.
70 .RE
71 .PP
72 \fIpw_gid\fR
73 .RS 4
74 This field is used to define the primary group ID for the user\&.
75 .sp
76 If this field contains the name of an existing group (or a group created before by
77 \fBnewusers\fR), the GID of this group will be used as the primary group ID for the user\&.
78 .sp
79 If this field is a number, this number will be used as the primary group ID of the user\&. If no groups exist with this GID, a new group will be created with this GID, and the name of the user\&.
80 .sp
81 If this field is empty, a new group will be created with the name of the user and a GID will be automatically defined by
82 \fBnewusers\fR
83 to be used as the primary group ID for the user and as the GID for the new group\&.
84 .sp
85 If this field contains the name of a group which does not exist (and was not created earlier wbefore by
86 \fBnewusers\fR), a new group will be created with the specified name and a GID will be automatically defined by
87 \fBnewusers\fR
88 to be used as the primary group ID for the user and Gs the ID for the new group\&.
89 .RE
90 .PP
91 \fIpw_gecos\fR
92 .RS 4
93 This field is copied in the GECOS field of the user\&.
94 .RE
95 .PP
96 \fIpw_dir\fR
97 .RS 4
98 This field is used to define the home directory of the user\&.
99 .sp
100 If this field does not specify an existing directory, the specified directory is created, with ownership set to the user being created or updated and its primary group\&.
101 .sp
102 If the home directory of an existing user is changed,
103 \fBnewusers\fR
104 does not move or copy the content of the old directory to the new location\&. This should be done manually\&.
105 .RE
106 .PP
107 \fIpw_shell\fR
108 .RS 4
109 This field defines the shell of the user\&. No checks are performed on this field\&.
110 .RE
111 .PP
112
113 \fBnewusers\fR
114 first tries to create or change all the specified users, and then write these changes to the user or group databases\&. If an error occurs (except in the final writes to the databases), no changes are committed to the databases\&.
115 .PP
116 This command is intended to be used in a large system environment where many accounts are updated at a single time\&.
117 .SH "OPCJE"
118 .PP
119 The options which apply to the
120 \fBnewusers\fR
121 command are:
122 .PP
123 \fB\-c\fR, \fB\-\-crypt\-method\fR
124 .RS 4
125 Use the specified method to encrypt the passwords\&.
126 .sp
127 The available methods are DES, MD5, NONE, and SHA256 or SHA512 if your libc support these methods\&.
128 .RE
129 .PP
130 \fB\-h\fR, \fB\-\-help\fR
131 .RS 4
132 Wyświetlenie komunikatu pomocy i zakończenie dzia\(/lania\&.
133 .RE
134 .PP
135 \fB\-r\fR, \fB\-\-system\fR
136 .RS 4
137 Create a system account\&.
138 .sp
139 System users will be created with no aging information in
140 /etc/shadow, and their numeric identifiers are choosen in the
141 \fBSYS_UID_MIN\fR\-\fBSYS_UID_MAX\fR
142 range, defined in
143 login\&.defs, instead of
144 \fBUID_MIN\fR\-\fBUID_MAX\fR
145 (and their
146 \fBGID\fR
147 counterparts for the creation of groups)\&.
148 .RE
149 .PP
150 \fB\-s\fR, \fB\-\-sha\-rounds\fR
151 .RS 4
152 Use the specified number of rounds to encrypt the passwords\&.
153 .sp
154 The value 0 means that the system will choose the default number of rounds for the crypt method (5000)\&.
155 .sp
156 A minimal value of 1000 and a maximal value of 999,999,999 will be enforced\&.
157 .sp
158 You can only use this option with the SHA256 or SHA512 crypt method\&.
159 .sp
160 By default, the number of rounds is defined by the SHA_CRYPT_MIN_ROUNDS and SHA_CRYPT_MAX_ROUNDS variables in
161 /etc/login\&.defs\&.
162 .RE
163 .SH "OSTRZEŻENIA"
164 .PP
165 The input file must be protected since it contains unencrypted passwords\&.
166 .PP
167 You should make sure the passwords and the encryption method respect the system\*(Aqs password policy\&.
168 .SH "CONFIGURATION"
169 .PP
170 The following configuration variables in
171 /etc/login\&.defs
172 change the behavior of this tool:
173 .PP
174 \fBENCRYPT_METHOD\fR (string)
175 .RS 4
176 This defines the system default encryption algorithm for encrypting passwords (if no algorithm are specified on the command line)\&.
177 .sp
178 It can take one of these values:
179 .sp
180 .RS 4
181 .ie n \{\
182 \h'-04'\(bu\h'+03'\c
183 .\}
184 .el \{\
185 .sp -1
186 .IP \(bu 2.3
187 .\}
188 \fIDES\fR
189 (default)
190 .RE
191 .sp
192 .RS 4
193 .ie n \{\
194 \h'-04'\(bu\h'+03'\c
195 .\}
196 .el \{\
197 .sp -1
198 .IP \(bu 2.3
199 .\}
200 \fIMD5\fR
201 .RE
202 .sp
203 .RS 4
204 .ie n \{\
205 \h'-04'\(bu\h'+03'\c
206 .\}
207 .el \{\
208 .sp -1
209 .IP \(bu 2.3
210 .\}
211 \fISHA256\fR
212 .RE
213 .sp
214 .RS 4
215 .ie n \{\
216 \h'-04'\(bu\h'+03'\c
217 .\}
218 .el \{\
219 .sp -1
220 .IP \(bu 2.3
221 .\}
222 \fISHA512\fR
223 .RE
224 .sp
225 Note: this parameter overrides the
226 \fBMD5_CRYPT_ENAB\fR
227 variable\&.
228 .RE
229 .PP
230 \fBGID_MAX\fR (number), \fBGID_MIN\fR (number)
231 .RS 4
232 Range of group IDs used for the creation of regular groups by
233 \fBuseradd\fR,
234 \fBgroupadd\fR, or
235 \fBnewusers\fR\&.
236 .RE
237 .PP
238 \fBMAX_MEMBERS_PER_GROUP\fR (number)
239 .RS 4
240 Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in
241 /etc/group
242 (with the same name, same password, and same GID)\&.
243 .sp
244 The default value is 0, meaning that there are no limits in the number of members in a group\&.
245 .sp
246 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\&.
247 .sp
248 If you need to enforce such limit, you can use 25\&.
249 .sp
250 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\&.
251 .RE
252 .PP
253 \fBMD5_CRYPT_ENAB\fR (boolean)
254 .RS 4
255 Indicate if passwords must be encrypted using the MD5\-based algorithm\&. If set to
256 \fIyes\fR, new passwords will be encrypted using the MD5\-based algorithm compatible with the one used by recent releases of FreeBSD\&. It supports passwords of unlimited length and longer salt strings\&. Set to
257 \fIno\fR
258 if you need to copy encrypted passwords to other systems which don\*(Aqt understand the new algorithm\&. Default is
259 \fIno\fR\&.
260 .sp
261 This variable is superceded by the
262 \fBENCRYPT_METHOD\fR
263 variable or by any command line option used to configure the encryption algorithm\&.
264 .sp
265 This variable is deprecated\&. You should use
266 \fBENCRYPT_METHOD\fR\&.
267 .RE
268 .PP
269 \fBPASS_MAX_DAYS\fR (number)
270 .RS 4
271 The maximum number of days a password may be used\&. If the password is older than this, a password change will be forced\&. If not specified, \-1 will be assumed (which disables the restriction)\&.
272 .RE
273 .PP
274 \fBPASS_MIN_DAYS\fR (number)
275 .RS 4
276 The minimum number of days allowed between password changes\&. Any password changes attempted sooner than this will be rejected\&. If not specified, \-1 will be assumed (which disables the restriction)\&.
277 .RE
278 .PP
279 \fBPASS_WARN_AGE\fR (number)
280 .RS 4
281 The number of days warning given before a password expires\&. A zero means warning is given only upon the day of expiration, a negative value means no warning is given\&. If not specified, no warning will be provided\&.
282 .RE
283 .PP
284 \fBSHA_CRYPT_MIN_ROUNDS\fR (number), \fBSHA_CRYPT_MAX_ROUNDS\fR (number)
285 .RS 4
286 When
287 \fBENCRYPT_METHOD\fR
288 is set to
289 \fISHA256\fR
290 or
291 \fISHA512\fR, this defines the number of SHA rounds used by the encryption algorithm by default (when the number of rounds is not specified on the command line)\&.
292 .sp
293 With a lot of rounds, it is more difficult to brute forcing the password\&. But note also that more CPU resources will be needed to authenticate users\&.
294 .sp
295 If not specified, the libc will choose the default number of rounds (5000)\&.
296 .sp
297 The values must be inside the 1000\-999999999 range\&.
298 .sp
299 If only one of the
300 \fBSHA_CRYPT_MIN_ROUNDS\fR
301 or
302 \fBSHA_CRYPT_MAX_ROUNDS\fR
303 values is set, then this value will be used\&.
304 .sp
305 If
306 \fBSHA_CRYPT_MIN_ROUNDS\fR
307 >
308 \fBSHA_CRYPT_MAX_ROUNDS\fR, the highest value will be used\&.
309 .RE
310 .PP
311 \fBSYS_GID_MAX\fR (number), \fBSYS_GID_MIN\fR (number)
312 .RS 4
313 Range of group IDs used for the creation of system groups by
314 \fBuseradd\fR,
315 \fBgroupadd\fR, or
316 \fBnewusers\fR\&.
317 .RE
318 .PP
319 \fBSYS_UID_MAX\fR (number), \fBSYS_UID_MIN\fR (number)
320 .RS 4
321 Range of user IDs used for the creation of system users by
322 \fBuseradd\fR
323 or
324 \fBnewusers\fR\&.
325 .RE
326 .PP
327 \fBUID_MAX\fR (number), \fBUID_MIN\fR (number)
328 .RS 4
329 Range of user IDs used for the creation of regular users by
330 \fBuseradd\fR
331 or
332 \fBnewusers\fR\&.
333 .RE
334 .PP
335 \fBUMASK\fR (number)
336 .RS 4
337 The file mode creation mask is initialized to this value\&. If not specified, the mask will be initialized to 022\&.
338 .sp
339
340 \fBuseradd\fR
341 and
342 \fBnewusers\fR
343 use this mask to set the mode of the home directory they create
344 .sp
345 It is also used by
346 \fBlogin\fR
347 to define users\*(Aq initial umask\&. Note that this mask can be overriden by the user\*(Aqs GECOS line (if
348 \fBQUOTAS_ENAB\fR
349 is set) or by the specification of a limit with the
350 \fIK\fR
351 identifier in
352 \fBlimits\fR(5)\&.
353 .RE
354 .SH "PLIKI"
355 .PP
356 /etc/passwd
357 .RS 4
358 Informacja o kontach użytkownik\('ow\&.
359 .RE
360 .PP
361 /etc/shadow
362 .RS 4
363 Informacje chronione o użytkownikach\&.
364 .RE
365 .PP
366 /etc/group
367 .RS 4
368 Informacje o grupach użytkownik\('ow\&.
369 .RE
370 .PP
371 /etc/gshadow
372 .RS 4
373 Informacje chronione o grupach użytkownik\('ow\&.
374 .RE
375 .PP
376 /etc/login\&.defs
377 .RS 4
378 Konfiguracja pakietu shadow\&.
379 .RE
380 .SH "ZOBACZ TAKŻE"
381 .PP
382 \fBlogin.defs\fR(5),
383 \fBpasswd\fR(1),
384 \fBuseradd\fR(8)\&.