Lines Matching +full:- +full:t

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
104 static int mode = -1;
105 static int which = -1;
123 conf.fd = -1;
133 if (*argv[1] == '-') {
135 * Special case, allow pw -V<dir> <operation> [args] for scripts etc.
140 errx(EXIT_FAILURE, "Both '-R' and '-V' "
154 --argc;
168 else if (mode == -1 && (tmp = getindex(Modes, argv[1])) != -1)
170 else if (which == -1 && (tmp = getindex(Which, argv[1])) != -1)
172 else if ((mode == -1 && which == -1) &&
173 ((tmp = getindex(Combo1, argv[1])) != -1 ||
174 (tmp = getindex(Combo2, argv[1])) != -1)) {
179 else if (which != -1 && mode != -1)
184 --argc;
190 if (mode == -1 || which == -1)
194 if (conf.rootfd == -1)
211 return (-1);
223 if (which == -1)
225 else if (mode == -1)
236 "\t-V etcdir alternate /etc location\n"
237 "\t-R rootdir alternate root directory\n"
238 "\t-C config configuration file\n"
239 "\t-q quiet operation\n"
241 "\t-n name login name\n"
242 "\t-u uid user id\n"
243 "\t-c comment user name/comment\n"
244 "\t-d directory home directory\n"
245 "\t-e date account expiry date\n"
246 "\t-p date password expiry date\n"
247 "\t-g grp initial group\n"
248 "\t-G grp1,grp2 additional groups\n"
249 "\t-m [ -k dir ] create and set up home\n"
250 "\t-M mode home directory permissions\n"
251 "\t-s shell name of login shell\n"
252 "\t-o duplicate uid ok\n"
253 "\t-L class user class\n"
254 "\t-h fd read password on fd\n"
255 "\t-H fd read encrypted password on fd\n"
256 "\t-Y update NIS maps\n"
257 "\t-N no update\n"
259 "\t-V etcdir alternate /etc location\n"
260 "\t-R rootdir alternate root directory\n"
261 "\t-D set user defaults\n"
262 "\t-b dir default home root dir\n"
263 "\t-e period default expiry period\n"
264 "\t-p period default password change period\n"
265 "\t-g group default group\n"
266 "\t-G grp1,grp2 additional groups\n"
267 "\t-L class default user class\n"
268 "\t-k dir default home skeleton\n"
269 "\t-M mode home directory permissions\n"
270 "\t-u min,max set min,max uids\n"
271 "\t-i min,max set min,max gids\n"
272 "\t-w method set default password method\n"
273 "\t-s shell default shell\n"
274 "\t-y path set NIS passwd file path\n",
276 "\t-V etcdir alternate /etc location\n"
277 "\t-R rootdir alternate root directory\n"
278 "\t-n name login name\n"
279 "\t-u uid user id\n"
280 "\t-Y update NIS maps\n"
281 "\t-y path set NIS passwd file path\n"
282 "\t-r remove home & contents\n",
284 "\t-V etcdir alternate /etc location\n"
285 "\t-R rootdir alternate root directory\n"
286 "\t-C config configuration file\n"
287 "\t-q quiet operation\n"
288 "\t-F force add if no user\n"
289 "\t-n name login name\n"
290 "\t-u uid user id\n"
291 "\t-c comment user name/comment\n"
292 "\t-d directory home directory\n"
293 "\t-e date account expiry date\n"
294 "\t-p date password expiry date\n"
295 "\t-g grp initial group\n"
296 "\t-G grp1,grp2 additional groups\n"
297 "\t-l name new login name\n"
298 "\t-L class user class\n"
299 "\t-m [ -k dir ] create and set up home\n"
300 "\t-M mode home directory permissions\n"
301 "\t-s shell name of login shell\n"
302 "\t-w method set new password using method\n"
303 "\t-h fd read password on fd\n"
304 "\t-H fd read encrypted password on fd\n"
305 "\t-Y update NIS maps\n"
306 "\t-y path set NIS passwd file path\n"
307 "\t-N no update\n",
309 "\t-V etcdir alternate /etc location\n"
310 "\t-R rootdir alternate root directory\n"
311 "\t-n name login name\n"
312 "\t-u uid user id\n"
313 "\t-F force print\n"
314 "\t-P prettier format\n"
315 "\t-a print all users\n"
316 "\t-7 print in v7 format\n",
318 "\t-V etcdir alternate /etc location\n"
319 "\t-R rootdir alternate root directory\n"
320 "\t-C config configuration file\n"
321 "\t-q quiet operation\n",
323 "\t-V etcdir alternate /etc locations\n"
324 "\t-C config configuration file\n"
325 "\t-q quiet operation\n",
327 "\t-V etcdir alternate /etc locations\n"
328 "\t-C config configuration file\n"
329 "\t-q quiet operation\n"
333 "\t-V etcdir alternate /etc location\n"
334 "\t-R rootdir alternate root directory\n"
335 "\t-C config configuration file\n"
336 "\t-q quiet operation\n"
337 "\t-n group group name\n"
338 "\t-g gid group id\n"
339 "\t-M usr1,usr2 add users as group members\n"
340 "\t-o duplicate gid ok\n"
341 "\t-Y update NIS maps\n"
342 "\t-N no update\n",
344 "\t-V etcdir alternate /etc location\n"
345 "\t-R rootdir alternate root directory\n"
346 "\t-n name group name\n"
347 "\t-g gid group id\n"
348 "\t-Y update NIS maps\n",
350 "\t-V etcdir alternate /etc location\n"
351 "\t-R rootdir alternate root directory\n"
352 "\t-C config configuration file\n"
353 "\t-q quiet operation\n"
354 "\t-F force add if not exists\n"
355 "\t-n name group name\n"
356 "\t-g gid group id\n"
357 "\t-M usr1,usr2 replaces users as group members\n"
358 "\t-m usr1,usr2 add users as group members\n"
359 "\t-d usr1,usr2 delete users as group members\n"
360 "\t-l name new group name\n"
361 "\t-Y update NIS maps\n"
362 "\t-N no update\n",
364 "\t-V etcdir alternate /etc location\n"
365 "\t-R rootdir alternate root directory\n"
366 "\t-n name group name\n"
367 "\t-g gid group id\n"
368 "\t-F force print\n"
369 "\t-P prettier format\n"
370 "\t-a print all accounting groups\n",
372 "\t-V etcdir alternate /etc location\n"
373 "\t-R rootdir alternate root directory\n"
374 "\t-C config configuration file\n"
375 "\t-q quiet operation\n"