Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / fr / 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: 16/02/2011
6 .\"    Manual: Commandes de gestion du syst\(`eme
7 .\"    Source: Commandes de gestion du syst\(`eme
8 .\"  Language: French
9 .\"
10 .TH "NEWUSERS" "8" "16/02/2011" "Commandes de gestion du syst\(`em" "Commandes de gestion du syst\(`em"
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 "NOM"
31 newusers \- Mettre \(`a jour, ou cr\('eer de nouveaux utilisateurs par lots
32 .SH "SYNOPSIS"
33 .HP \w'\fBnewusers\fR\ 'u
34 \fBnewusers\fR [\fIoptions\fR\ \fInouveaux_utilisateurs\fR]
35 .SH "DESCRIPTION"
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 Ce champ sera chiffr\('e et utilis\('e comme la nouvelle valeur du mot de passe chiffr\('e\&.
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 Cette commande a \('et\('e con\(,cue pour les gros syst\(`emes pour lesquels un grand nombre de comptes sont mis \(`a jour \(`a un m\(^eme instant\&.
117 .SH "OPTIONS"
118 .PP
119 Les options disponibles pour la commande
120 \fBnewusers\fR
121 sont\ \&:
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 Afficher un message d\*(Aqaide et quitter\&.
133 .RE
134 .PP
135 \fB\-r\fR, \fB\-\-system\fR
136 .RS 4
137 Cr\('eer un compte syst\(`eme\&.
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 "AVERTISSEMENTS"
164 .PP
165 Le fichier d\*(Aqentr\('ee doit \(^etre correctement prot\('eg\('e puisqu\*(Aqil contient des mots de passe en clair\&.
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 Les variables de configuration suivantes de
171 /etc/login\&.defs
172 modifient le comportement de cet outil\ \&:
173 .PP
174 \fBENCRYPT_METHOD\fR (cha\(^ine ce caract\(`eres)
175 .RS 4
176 D\('efinit les algorithmes de chiffrement par d\('efaut du syst\(`eme pour coder les mots de passes (si aucun algorithme n\*(Aqa \('et\('e indiqu\('e sur la ligne de commandes)\&.
177 .sp
178 Il peut prendre une de ces valeurs\ \&:
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 (par d\('efaut)
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 Remarque\ \&: ce param\(`etre remplace la variable
226 \fBMD5_CRYPT_ENAB\fR\&.
227 .RE
228 .PP
229 \fBGID_MAX\fR (nombre), \fBGID_MIN\fR (nombre)
230 .RS 4
231 Plage d\*(Aqidentifiants num\('eriques de groupes que les commandes
232 \fBuseradd\fR,
233 \fBgroupadd\fR
234 ou
235 \fBnewusers\fR
236 peuvent utiliser pour la cr\('eation des groupes normaux\&.
237 .RE
238 .PP
239 \fBMAX_MEMBERS_PER_GROUP\fR (nombre)
240 .RS 4
241 Nombre maximum de membres par entr\('ee de groupe\&. Lorsque le maximum est atteint, une nouvelle entr\('ee de groupe (ligne) est d\('emarr\('ee dans
242 /etc/group
243 (avec le m\(^eme nom, m\(^eme mot de passe, et m\(^eme GID)\&.
244 .sp
245 La valeur par d\('efaut est 0, ce qui signifie qu\*(Aqil n\*(Aqy a pas de limites pour le nombre de membres dans un groupe\&.
246 .sp
247 Cette fonctionnalit\('e (groupe d\('ecoup\('e) permet de limiter la longueur des lignes dans le fichier de groupes\&. Ceci est utile pour s\*(Aqassurer que les lignes pour les groupes NIS ne sont pas plus grandes que 1024 caract\(`eres\&.
248 .sp
249 Si vous avez besoin de fixer cette limite, vous pouvez utiliser 25\&.
250 .sp
251 Remarque\ \&: les groupes d\('ecoup\('es ne sont peut\-\(^etre pas pris en charge par tous les outils (m\(^eme dans la suite d\*(Aqoutils Shadow)\&. Vous ne devriez pas utiliser cette variable, sauf si vous en avez vraiment besoin\&.
252 .RE
253 .PP
254 \fBMD5_CRYPT_ENAB\fR (bool\('een)
255 .RS 4
256 Indicate if passwords must be encrypted using the MD5\-based algorithm\&. If set to
257 \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
258 \fIno\fR
259 if you need to copy encrypted passwords to other systems which don\*(Aqt understand the new algorithm\&. Default is
260 \fIno\fR\&.
261 .sp
262 This variable is superceded by the
263 \fBENCRYPT_METHOD\fR
264 variable or by any command line option used to configure the encryption algorithm\&.
265 .sp
266 This variable is deprecated\&. You should use
267 \fBENCRYPT_METHOD\fR\&.
268 .RE
269 .PP
270 \fBPASS_MAX_DAYS\fR (nombre)
271 .RS 4
272 Nombre maximum de jours de validit\('e d\*(Aqun mot de passe\&. Apr\(`es cette dur\('ee, une modification du mot de passe est obligatoire\&. S\*(Aqil n\*(Aqest pas pr\('ecis\('e, la valeur de \-1 est utilis\('ee (ce qui enl\(`eve toute restriction)\&.
273 .RE
274 .PP
275 \fBPASS_MIN_DAYS\fR (nombre)
276 .RS 4
277 Nombre minimum de jours autoris\('e avant la modification d\*(Aqun mot de passe\&. Toute tentative de modification du mot de passe avant cette dur\('ee est rejet\('ee\&. S\*(Aqil n\*(Aqest pas pr\('ecis\('e, la valeur de \-1 est utilis\('ee (ce qui enl\(`eve toute restriction)\&.
278 .RE
279 .PP
280 \fBPASS_WARN_AGE\fR (nombre)
281 .RS 4
282 Nombre de jours durant lesquels l\*(Aqutilisateur recevra un avertissement avant que son mot de passe n\*(Aqarrive en fin de validit\('e\&. Une valeur n\('egative signifie qu\*(Aqaucun avertissement n\*(Aqest donn\('e\&. S\*(Aqil n\*(Aqest pas pr\('ecis\('e, aucun avertissement n\*(Aqest donn\('e\&.
283 .RE
284 .PP
285 \fBSHA_CRYPT_MIN_ROUNDS\fR (nombre), \fBSHA_CRYPT_MAX_ROUNDS\fR (nombre)
286 .RS 4
287 When
288 \fBENCRYPT_METHOD\fR
289 is set to
290 \fISHA256\fR
291 or
292 \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)\&.
293 .sp
294 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\&.
295 .sp
296 If not specified, the libc will choose the default number of rounds (5000)\&.
297 .sp
298 The values must be inside the 1000\-999999999 range\&.
299 .sp
300 If only one of the
301 \fBSHA_CRYPT_MIN_ROUNDS\fR
302 or
303 \fBSHA_CRYPT_MAX_ROUNDS\fR
304 values is set, then this value will be used\&.
305 .sp
306 If
307 \fBSHA_CRYPT_MIN_ROUNDS\fR
308 >
309 \fBSHA_CRYPT_MAX_ROUNDS\fR, the highest value will be used\&.
310 .RE
311 .PP
312 \fBSYS_GID_MAX\fR (nombre), \fBSYS_GID_MIN\fR (nombre)
313 .RS 4
314 Plage d\*(Aqidentifiants num\('eriques de groupes que les commandes
315 \fBuseradd\fR,
316 \fBgroupadd\fR
317 ou
318 \fBnewusers\fR
319 peuvent utiliser pour la cr\('eation de groupes syst\(`eme\&.
320 .RE
321 .PP
322 \fBSYS_UID_MAX\fR (nombre), \fBSYS_UID_MIN\fR (nombre)
323 .RS 4
324 Plage d\*(Aqidentifiants num\('eriques d\*(Aqutilisateurs que les commandes
325 \fBuseradd\fR
326 ou
327 \fBnewusers\fR
328 peuvent utiliser pour la cr\('eation d\*(Aqutilisateurs syst\(`eme\&.
329 .RE
330 .PP
331 \fBUID_MAX\fR (nombre), \fBUID_MIN\fR (nombre)
332 .RS 4
333 Plage d\*(Aqidentifiants num\('eriques d\*(Aqutilisateurs que les commandes
334 \fBuseradd\fR
335 ou
336 \fBnewusers\fR
337 peuvent utiliser pour la cr\('eation d\*(Aqutilisateurs normaux\&.
338 .RE
339 .PP
340 \fBUMASK\fR (nombre)
341 .RS 4
342 The file mode creation mask is initialized to this value\&. If not specified, the mask will be initialized to 022\&.
343 .sp
344
345 \fBuseradd\fR
346 and
347 \fBnewusers\fR
348 use this mask to set the mode of the home directory they create
349 .sp
350 It is also used by
351 \fBlogin\fR
352 to define users\*(Aq initial umask\&. Note that this mask can be overriden by the user\*(Aqs GECOS line (if
353 \fBQUOTAS_ENAB\fR
354 is set) or by the specification of a limit with the
355 \fIK\fR
356 identifier in
357 \fBlimits\fR(5)\&.
358 .RE
359 .SH "FICHIERS"
360 .PP
361 /etc/passwd
362 .RS 4
363 Informations sur les comptes des utilisateurs\&.
364 .RE
365 .PP
366 /etc/shadow
367 .RS 4
368 Informations s\('ecuris\('ees sur les comptes utilisateurs\&.
369 .RE
370 .PP
371 /etc/group
372 .RS 4
373 Informations sur les groupes\&.
374 .RE
375 .PP
376 /etc/gshadow
377 .RS 4
378 Informations s\('ecuris\('ees sur les groupes\&.
379 .RE
380 .PP
381 /etc/login\&.defs
382 .RS 4
383 Configuration de la suite des mots de passe cach\('es \(Fo\ \&shadow password\ \&\(Fc\&.
384 .RE
385 .SH "VOIR AUSSI"
386 .PP
387 \fBlogin.defs\fR(5),
388 \fBpasswd\fR(1),
389 \fBuseradd\fR(8)\&.