|
Lines 384-390
Link Here
|
| 384 |
<filename>/usr/share/skel</filename>, and can optionally mail |
384 |
<filename>/usr/share/skel</filename>, and can optionally mail |
| 385 |
the new user a welcome message.</para> |
385 |
the new user a welcome message.</para> |
| 386 |
|
386 |
|
| 387 |
<para>To create the initial configuration file, use |
387 |
<para>In &os; 5.0, &man.adduser.8; was rewritten from a |
|
|
388 |
Perl script to a shell script that acts as wrapper around |
| 389 |
&man.pw.8;, so its usage is slightly different on &os; 4.x |
| 390 |
and &os; 5.x.</para> |
| 391 |
|
| 392 |
<para>To create the initial configuration file on &os; 4.x, use |
| 388 |
<command>adduser -s -config_create</command>. |
393 |
<command>adduser -s -config_create</command>. |
| 389 |
<footnote> |
394 |
<footnote> |
| 390 |
<para>The <option>-s</option> makes &man.adduser.8; |
395 |
<para>The <option>-s</option> makes &man.adduser.8; |
|
Lines 398-404
Link Here
|
| 398 |
nasty.</para> |
403 |
nasty.</para> |
| 399 |
|
404 |
|
| 400 |
<example> |
405 |
<example> |
| 401 |
<title>Configuring <command>adduser</command></title> |
406 |
<title>Configuring <command>adduser</command> and adding a |
|
|
407 |
user on &os; 4.x</title> |
| 402 |
|
408 |
|
| 403 |
<screen>&prompt.root; <userinput>adduser -v</userinput> |
409 |
<screen>&prompt.root; <userinput>adduser -v</userinput> |
| 404 |
Use option ``-silent'' if you don't want to see all warnings and questions. |
410 |
Use option ``-silent'' if you don't want to see all warnings and questions. |
|
Lines 470-475
Link Here
|
| 470 |
exit the program, and try the <option>-s</option> |
476 |
exit the program, and try the <option>-s</option> |
| 471 |
option.</para> |
477 |
option.</para> |
| 472 |
</note> |
478 |
</note> |
|
|
479 |
|
| 480 |
<example> |
| 481 |
<title>Adding a user on &os; 5.x</title> |
| 482 |
|
| 483 |
<screen>&prompt.root; <userinput>adduser</userinput> |
| 484 |
Username: <userinput>jru</userinput> |
| 485 |
Full name: <userinput>J. Random User</userinput> |
| 486 |
Uid (Leave empty for default): |
| 487 |
Login group [jru]: |
| 488 |
Login group is jru. Invite jru into other groups? []: <userinput>wheel</userinput> |
| 489 |
Login class [default]: |
| 490 |
Shell (sh csh tcsh bash nologin) [sh]: <userinput>bash</userinput> |
| 491 |
Home directory [/home/jru]: |
| 492 |
Use password-based authentication? [yes]: |
| 493 |
Use an empty password? (yes/no) [no]: |
| 494 |
Use a random password? (yes/no) [no]: |
| 495 |
Enter password: |
| 496 |
Enter password again: |
| 497 |
Lock out the account after creation? [no]: |
| 498 |
Username : jru |
| 499 |
Password : ***** |
| 500 |
Full Name : J. Random User |
| 501 |
Uid : 1003 |
| 502 |
Class : |
| 503 |
Groups : jru wheel |
| 504 |
Home : /home/jru |
| 505 |
Shell : /usr/local/bin/bash |
| 506 |
Locked : no |
| 507 |
OK? (yes/no): <userinput>yes</userinput> |
| 508 |
adduser: INFO: Successfully added (jru) to the user database. |
| 509 |
Add another user? (yes/no): <userinput>no</userinput> |
| 510 |
Goodbye! |
| 511 |
&prompt.root;</screen> |
| 512 |
</example> |
| 473 |
</sect2> |
513 |
</sect2> |
| 474 |
|
514 |
|
| 475 |
<sect2 id="users-rmuser"> |
515 |
<sect2 id="users-rmuser"> |
|
Lines 570-575
Link Here
|
| 570 |
containing user information. When the user exists from the |
610 |
containing user information. When the user exists from the |
| 571 |
editor, the user database is updated with the new |
611 |
editor, the user database is updated with the new |
| 572 |
information.</para> |
612 |
information.</para> |
|
|
613 |
|
| 614 |
<note> |
| 615 |
<para>In &os; 5.x, you will be asked for your password |
| 616 |
after exiting the editor if you are not the superuser.</para> |
| 617 |
</note> |
| 573 |
|
618 |
|
| 574 |
<example> |
619 |
<example> |
| 575 |
<title>Interactive <command>chpass</command> by Superuser</title> |
620 |
<title>Interactive <command>chpass</command> by Superuser</title> |