1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925
|
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="HDRWQ581">
<title>Managing Administrative Privilege</title>
<para>This chapter explains how to enable system administrators and operators to perform privileged AFS operations.</para>
<sect1 id="HDRWQ582">
<title>Summary of Instructions</title>
<para>This chapter explains how to perform the following tasks by using the indicated commands:</para>
<informaltable frame="none">
<tgroup cols="2">
<colspec colwidth="70*" />
<colspec colwidth="30*" />
<tbody>
<row>
<entry>Display members of <emphasis role="bold">system:administrators</emphasis> group</entry>
<entry><emphasis role="bold">pts membership</emphasis></entry>
</row>
<row>
<entry>Add user to <emphasis role="bold">system:administrators</emphasis> group</entry>
<entry><emphasis role="bold">pts adduser</emphasis></entry>
</row>
<row>
<entry>Remove user from <emphasis role="bold">system:administrators</emphasis> group</entry>
<entry><emphasis role="bold">pts removeuser</emphasis></entry>
</row>
<row>
<entry>Display <computeroutput>ADMIN</computeroutput> flag in Authentication Database entry</entry>
<entry><emphasis role="bold">kas examine</emphasis></entry>
</row>
<row>
<entry>Set or remove <computeroutput>ADMIN</computeroutput> flag on Authentication Database entry</entry>
<entry><emphasis role="bold">kas setfields</emphasis></entry>
</row>
<row>
<entry>Display users in <emphasis role="bold">UserList</emphasis> file</entry>
<entry><emphasis role="bold">bos listusers</emphasis></entry>
</row>
<row>
<entry>Add user to <emphasis role="bold">UserList</emphasis> file</entry>
<entry><emphasis role="bold">bos adduser</emphasis></entry>
</row>
<row>
<entry>Remove user from <emphasis role="bold">UserList</emphasis> file</entry>
<entry><emphasis role="bold">bos removeuser</emphasis></entry>
</row>
</tbody>
</tgroup>
</informaltable>
</sect1>
<sect1 id="HDRWQ584">
<title>An Overview of Administrative Privilege</title>
<indexterm>
<primary>administrative privilege</primary>
<secondary>three types</secondary>
</indexterm>
<indexterm>
<primary>privilege</primary>
<secondary></secondary>
<see>administrative privilege</see>
</indexterm>
<para>A fully privileged AFS system administrator has the following characteristics: <itemizedlist>
<listitem>
<para>Membership in the cell's <emphasis role="bold">system:administrators</emphasis> group. See <link
linkend="HDRWQ586">Administering the system:administrators Group</link>.</para>
</listitem>
<listitem>
<para>The <computeroutput>ADMIN</computeroutput> flag on his or her entry in the cell's Authentication Database. See <link
linkend="HDRWQ589">Granting Privilege for kas Commands: the ADMIN Flag</link>.</para>
</listitem>
<listitem>
<para>Inclusion in the file <emphasis role="bold">/usr/afs/etc/UserList</emphasis> on the local disk of each AFS server
machine in the cell. See <link linkend="HDRWQ592">Administering the UserList File</link>.</para>
</listitem>
</itemizedlist></para>
<para>This section describes the three privileges and explains why more than one privilege is necessary.</para>
<note>
<para>Never grant any administrative privilege to the user <emphasis role="bold">anonymous</emphasis>, even when a server
outage makes it impossible to mutually authenticate. If you grant such privilege, then any user who can access a machine in
your cell can issue privileged commands. The alternative solution is to put the affected server machine into no-authentication
mode and use the <emphasis role="bold">-noauth</emphasis> flag available on many commands to prevent mutual authentication
attempts. For further discussion, see <link linkend="HDRWQ123">Managing Authentication and Authorization
Requirements</link>.</para>
</note>
<sect2 id="HDRWQ585">
<title>The Reason for Separate Privileges</title>
<para>Often, a cell's administrators require full administrative privileges to perform their jobs effectively. However,
separating the three types of privilege makes it possible to grant only the minimum set of privileges that a given
administrator needs to complete his or her work.</para>
<para>The <emphasis role="bold">system:administrators</emphasis> group privilege is perhaps the most basic, and most
frequently used during normal operation (when all the servers are running normally). When the Protection Database is
unavailable due to machine or server outage, it is not possible to issue commands that require this type of privilege.</para>
<para>The <computeroutput>ADMIN</computeroutput> flag privilege is separate because of the extreme sensitivity of the
information in the Authentication Database, especially the server encryption key in the <emphasis role="bold">afs</emphasis>
entry. When the Authentication Database is unavailable due to machine or server outage, it is not possible to issue commands
that require this type of privilege.</para>
<para>The ability to issue privileged <emphasis role="bold">bos</emphasis> and <emphasis role="bold">vos</emphasis> command is
recorded in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file on the local disk of each AFS server machine
rather than in a database, so that in case of serious server or network problems administrators can still log onto server
machines and use those commands while solving the problem.</para>
</sect2>
</sect1>
<sect1 id="HDRWQ586">
<title>Administering the system:administrators Group</title>
<indexterm>
<primary>pts commands</primary>
<secondary>granting privilege for</secondary>
</indexterm>
<indexterm>
<primary>fs commands</primary>
<secondary>granting privilege for</secondary>
</indexterm>
<indexterm>
<primary>privilege</primary>
<secondary>granting for pts commands</secondary>
</indexterm>
<indexterm>
<primary>privilege</primary>
<secondary>granting for fs commands</secondary>
</indexterm>
<indexterm>
<primary>granting</primary>
<secondary>privilege for fs commands</secondary>
</indexterm>
<indexterm>
<primary>granting</primary>
<secondary>privilege for pts commands</secondary>
</indexterm>
<indexterm>
<primary>system:administrators group</primary>
<secondary>privileges resulting</secondary>
</indexterm>
<para>The first type of AFS administrative privilege is membership . Members of the <emphasis
role="bold">system:administrators</emphasis> group in the Protection Database have the following privileges: <itemizedlist>
<listitem>
<para>Permission to issue all <emphasis role="bold">pts</emphasis> commands, which are used to administer the Protection
Database. See <link linkend="HDRWQ531">Administering the Protection Database</link>.</para>
</listitem>
<listitem>
<para>Permission to issue the <emphasis role="bold">fs setvol</emphasis> and <emphasis role="bold">fs setquota</emphasis>
commands, which set the space quota on volumes as described in <link linkend="HDRWQ234">Setting and Displaying Volume
Quota and Current Size</link>.</para>
</listitem>
<listitem>
<para>Implicit <emphasis role="bold">a</emphasis> (<emphasis role="bold">administer</emphasis>) and by default <emphasis
role="bold">l</emphasis> (<emphasis role="bold">lookup</emphasis>) permissions on the access control list (ACL) on every
directory in the cell's AFS filespace. Members of the group can use the <emphasis role="bold">fs setacl</emphasis> command
to grant themselves any other permissions they require, as described in <link linkend="HDRWQ573">Setting ACL
Entries</link>.</para>
<para>You can change the ACL permissions that the File Server on a given file server machine implicitly grants to the
members of the <emphasis role="bold">system:administrators</emphasis> group for the data in volumes that it houses. When
you issue the <emphasis role="bold">bos create</emphasis> command to create and start the <emphasis
role="bold">fs</emphasis> process on the machine, include the <emphasis role="bold">-implicit</emphasis> argument to the
<emphasis role="bold">fileserver</emphasis> initialization command. For syntax details, see the <emphasis
role="bold">fileserver</emphasis> reference page in the <emphasis>OpenAFS Administration Reference</emphasis>. You can
grant additional permissions, or remove the <emphasis role="bold">l</emphasis> permission. However, the File Server always
implicitly grants the <emphasis role="bold">a</emphasis> permission to members of the group, even if you set the value of
the <emphasis role="bold">-implicit</emphasis> argument to <emphasis role="bold">none</emphasis>.</para>
</listitem>
</itemizedlist></para>
<indexterm>
<primary>system:administrators group</primary>
<secondary>members</secondary>
<tertiary>displaying</tertiary>
</indexterm>
<indexterm>
<primary>displaying</primary>
<secondary>system:administrators group members</secondary>
</indexterm>
<indexterm>
<primary>pts commands</primary>
<secondary>membership</secondary>
<tertiary>displaying system:administrators group</tertiary>
</indexterm>
<indexterm>
<primary>commands</primary>
<secondary>pts membership</secondary>
<tertiary>displaying system:administrators group</tertiary>
</indexterm>
<sect2 id="HDRWQ587">
<title>To display the members of the system:administrators group</title>
<orderedlist>
<listitem>
<para>Issue the <emphasis role="bold">pts membership</emphasis> command to display the <emphasis
role="bold">system:administrators</emphasis> group's list of members. Any user can issue this command as long as the first
privacy flag on the <emphasis role="bold">system:administrators</emphasis> group's Protection Database entry is not
changed from the default value of uppercase <computeroutput>S</computeroutput>. <programlisting>
% <emphasis role="bold">pts membership system:administrators</emphasis>
</programlisting></para>
<para>where <emphasis role="bold">m</emphasis> is the shortest acceptable abbreviation of <emphasis
role="bold">membership</emphasis>.</para>
</listitem>
</orderedlist>
</sect2>
<sect2 id="Header_657">
<title>To add users to the system:administrators group</title>
<indexterm>
<primary>system:administrators group</primary>
<secondary>members</secondary>
<tertiary>adding</tertiary>
</indexterm>
<indexterm>
<primary>adding</primary>
<secondary>system:administrators group members</secondary>
</indexterm>
<indexterm>
<primary>pts commands</primary>
<secondary>adduser</secondary>
<tertiary>for system:administrators group</tertiary>
</indexterm>
<indexterm>
<primary>commands</primary>
<secondary>pts adduser</secondary>
<tertiary>for system:administrators group</tertiary>
</indexterm>
<orderedlist>
<listitem>
<para>Verify that you belong to the <emphasis role="bold">system:administrators</emphasis> group. If necessary, issue the
<emphasis role="bold">pts membership</emphasis> command, which is fully described in <link linkend="HDRWQ587">To display
the members of the system:administrators group</link>. <programlisting>
% <emphasis role="bold">pts membership system:administrators</emphasis>
</programlisting></para>
</listitem>
<listitem>
<para>Issue the <emphasis role="bold">pts adduser</emphasis> group to add one or more users. <programlisting>
% <emphasis role="bold">pts adduser -user</emphasis> <<replaceable>user name</replaceable>>+ <emphasis role="bold">-group system:administrators</emphasis>
</programlisting></para>
<para>where <variablelist>
<varlistentry>
<term><emphasis role="bold">ad</emphasis></term>
<listitem>
<para>Is the shortest acceptable abbreviation of <emphasis role="bold">adduser</emphasis>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="bold">-user</emphasis></term>
<listitem>
<para>Names each user to add to the <emphasis role="bold">system:administrators</emphasis> group.</para>
</listitem>
</varlistentry>
</variablelist></para>
</listitem>
</orderedlist>
</sect2>
<sect2 id="HDRWQ588">
<title>To remove users from the system:administrators group</title>
<indexterm>
<primary>system:administrators group</primary>
<secondary>members</secondary>
<tertiary>removing</tertiary>
</indexterm>
<indexterm>
<primary>removing</primary>
<secondary>system:administrators group members</secondary>
</indexterm>
<indexterm>
<primary>pts commands</primary>
<secondary>removeuser</secondary>
<tertiary>for system:administrators group</tertiary>
</indexterm>
<indexterm>
<primary>commands</primary>
<secondary>pts removeuser</secondary>
<tertiary>for system:administrators group</tertiary>
</indexterm>
<orderedlist>
<listitem>
<para>Verify that you belong to the <emphasis role="bold">system:administrators</emphasis> group. If necessary, issue the
<emphasis role="bold">pts membership</emphasis> command, which is fully described in <link linkend="HDRWQ587">To display
the members of the system:administrators group</link>. <programlisting>
% <emphasis role="bold">pts membership system:administrators</emphasis>
</programlisting></para>
</listitem>
<listitem>
<para>Issue the <emphasis role="bold">pts removeuser</emphasis> command to remove one or more users. <programlisting>
% <emphasis role="bold">pts removeuser -user</emphasis> <<replaceable>user name</replaceable>>+ <emphasis role="bold">-group system:administrators</emphasis>
</programlisting></para>
<para>where <variablelist>
<varlistentry>
<term><emphasis role="bold">rem</emphasis></term>
<listitem>
<para>Is the shortest acceptable abbreviation of <emphasis role="bold">removeuser</emphasis>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="bold">-user</emphasis></term>
<listitem>
<para>Names each user to remove from the <emphasis role="bold">system:administrators</emphasis> group.</para>
</listitem>
</varlistentry>
</variablelist></para>
</listitem>
</orderedlist>
</sect2>
</sect1>
<sect1 id="HDRWQ589">
<title>Granting Privilege for kas Commands: the ADMIN Flag</title>
<indexterm>
<primary>ADMIN flag in Authentication Database entry</primary>
<secondary>privileges resulting</secondary>
</indexterm>
<para>Administrators who have the <computeroutput>ADMIN</computeroutput> flag on their Authentication Database entry can issue
all <emphasis role="bold">kas</emphasis> commands, which enable them to administer the Authentication Database. <indexterm>
<primary>kas commands</primary>
<secondary>granting privilege for</secondary>
</indexterm> <indexterm>
<primary>privilege</primary>
<secondary>granting for kas commands</secondary>
</indexterm> <indexterm>
<primary>granting</primary>
<secondary>privilege for kas commands</secondary>
</indexterm></para>
<sect2 id="HDRWQ590">
<title>To check if the ADMIN flag is set</title>
<indexterm>
<primary>ADMIN flag in Authentication Database entry</primary>
<secondary>displaying</secondary>
</indexterm>
<indexterm>
<primary>displaying</primary>
<secondary>ADMIN flag in Authentication Database entry</secondary>
</indexterm>
<indexterm>
<primary>kas commands</primary>
<secondary>examine</secondary>
<tertiary>to display ADMIN flag</tertiary>
</indexterm>
<indexterm>
<primary>commands</primary>
<secondary>kas examine</secondary>
<tertiary>to display ADMIN flag</tertiary>
</indexterm>
<orderedlist>
<listitem>
<para>Issue the <emphasis role="bold">kas examine</emphasis> command to display an entry from the
Authentication Database.</para>
<para>The Authentication Server performs its own authentication rather than accepting your existing AFS token. By default,
it authenticates your local (UFS) identity, which possibly does not correspond to an AFS-privileged administrator. Include
the <emphasis role="bold">-admin_username</emphasis> argument (here abbreviated to <emphasis
role="bold">-admin</emphasis>) to name a user identity that has the <computeroutput>ADMIN</computeroutput> flag on its
Authentication Database entry.</para>
<programlisting>
% <emphasis role="bold">kas examine</emphasis> <<replaceable>name of user</replaceable>> \
<emphasis role="bold">-admin</emphasis> <<replaceable>admin principal to use for authentication</replaceable>>
Administrator's (admin_user) password: <<replaceable>admin_password</replaceable>>
</programlisting>
<para>where <variablelist>
<varlistentry>
<term><emphasis role="bold">e</emphasis></term>
<listitem>
<para>Is the shortest acceptable abbreviation of <emphasis role="bold">examine</emphasis>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="bold">name of user</emphasis></term>
<listitem>
<para>Names the entry to display.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="bold">-admin</emphasis></term>
<listitem>
<para>Names an administrative account with the <computeroutput>ADMIN</computeroutput> flag on its Authentication
Database entry, such as the <emphasis role="bold">admin</emphasis> account. The password prompt echoes it as
admin_user. Enter the appropriate password as admin_password.</para>
</listitem>
</varlistentry>
</variablelist></para>
</listitem>
</orderedlist>
<para>If the <computeroutput>ADMIN</computeroutput> flag is turned on, it appears on the first line, as in this
example:</para>
<programlisting>
% <emphasis role="bold">kas e terry -admin admin</emphasis>
Administrator's (admin) password: <<replaceable>admin_password</replaceable>>
User data for terry (ADMIN)
key version is 0, etc...
</programlisting>
<indexterm>
<primary>commands</primary>
<secondary>kas setfields</secondary>
<tertiary>setting ADMIN flag</tertiary>
</indexterm>
<indexterm>
<primary>kas commands</primary>
<secondary>setfields</secondary>
<tertiary>setting ADMIN flag</tertiary>
</indexterm>
<indexterm>
<primary>ADMIN flag in Authentication Database entry</primary>
<secondary>setting or removing</secondary>
</indexterm>
<indexterm>
<primary>adding</primary>
<secondary>ADMIN flag to Authentication Database entry</secondary>
</indexterm>
<indexterm>
<primary>setting</primary>
<secondary>ADMIN flag in Authentication Database entry</secondary>
</indexterm>
<indexterm>
<primary>removing</primary>
<secondary>ADMIN flag from Authentication Database entry</secondary>
</indexterm>
</sect2>
<sect2 id="Header_661">
<title>To set or remove the ADMIN flag</title>
<orderedlist>
<listitem>
<para>Issue the <emphasis role="bold">kas setfields</emphasis> command to turn on the
<computeroutput>ADMIN</computeroutput> flag in an Authentication Database entry.</para>
<para>The Authentication Server performs its own authentication rather than accepting your existing AFS token. By default,
it authenticates your local (UNIX) identity, which possibly does not correspond to an AFS-privileged administrator.
Include the <emphasis role="bold">-admin</emphasis> argument to name an identity that has the
<computeroutput>ADMIN</computeroutput> flag on its Authentication Database entry. To verify that an entry has the flag,
issue the <emphasis role="bold">kas examine</emphasis> command as described in <link linkend="HDRWQ590">To check if the
ADMIN flag is set</link>.</para>
<para>The following command appears on two lines only for legibility.</para>
<programlisting>
% <emphasis role="bold">kas setfields</emphasis> <<replaceable>name of user</replaceable>> {<emphasis role="bold">ADMIN</emphasis> | <emphasis
role="bold">NOADMIN</emphasis>} \
<emphasis role="bold">-admin</emphasis> <<replaceable>admin principal to use for authentication</replaceable>>
Administrator's (admin_user) password: <<replaceable>admin_password</replaceable>>
</programlisting>
<para>where <variablelist>
<varlistentry>
<term><emphasis role="bold">sf</emphasis></term>
<listitem>
<para>Is an alias for <emphasis role="bold">setfields</emphasis> (and <emphasis role="bold">setf</emphasis> is the
shortest acceptable abbreviation).</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="bold">name of user</emphasis></term>
<listitem>
<para>Names the entry for which to set or remove the <computeroutput>ADMIN</computeroutput> flag.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="bold">ADMIN | NOADMIN</emphasis></term>
<listitem>
<para>Sets or removes the <computeroutput>ADMIN</computeroutput> flag, respectively.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="bold">-admin</emphasis></term>
<listitem>
<para>Names an administrative account with the <computeroutput>ADMIN</computeroutput> flag on its Authentication
Database entry, such as the <emphasis role="bold">admin</emphasis> account. The password prompt echoes it as
admin_user. Enter the appropriate password as admin_password.</para>
</listitem>
</varlistentry>
</variablelist></para>
</listitem>
</orderedlist>
</sect2>
</sect1>
<sect1 id="HDRWQ592">
<title>Administering the UserList File</title>
<indexterm>
<primary>UserList file</primary>
<secondary>privileges resulting</secondary>
</indexterm>
<para>Inclusion in the file <emphasis role="bold">/usr/afs/etc/UserList</emphasis> on the local disk of each AFS server machine
enables an administrator to issue commands from the indicated suites. <itemizedlist>
<listitem>
<para>The <emphasis role="bold">bos</emphasis> commands enable the administrator to manage server processes and the server
configuration files that define the cell's database server machines, server encryption keys, and privileged users. See
<link linkend="HDRWQ80">Administering Server Machines</link> and <link linkend="HDRWQ142">Monitoring and Controlling
Server Processes</link>.</para>
</listitem>
<listitem>
<para>The <emphasis role="bold">vos</emphasis> commands enable the administrator to manage volumes and the Volume Location
Database (VLDB). See <link linkend="HDRWQ174">Managing Volumes</link>.</para>
</listitem>
<listitem>
<para>The <emphasis role="bold">backup</emphasis> commands enable the administrator to use the AFS Backup System to copy
data to permanent storage. See <link linkend="HDRWQ248">Configuring the AFS Backup System</link> and <link
linkend="HDRWQ283">Backing Up and Restoring AFS Data</link>.</para>
</listitem>
</itemizedlist></para>
<indexterm>
<primary>granting</primary>
<secondary>privilege for kas commands</secondary>
</indexterm>
<indexterm>
<primary>bos commands</primary>
<secondary>granting privilege for</secondary>
</indexterm>
<indexterm>
<primary>vos commands</primary>
<secondary>granting privilege for</secondary>
</indexterm>
<indexterm>
<primary>backup commands</primary>
<secondary>granting privilege for</secondary>
</indexterm>
<indexterm>
<primary>privilege</primary>
<secondary>granting for bos commands</secondary>
</indexterm>
<indexterm>
<primary>privilege</primary>
<secondary>granting for vos commands</secondary>
</indexterm>
<indexterm>
<primary>privilege</primary>
<secondary>granting for backup commands</secondary>
</indexterm>
<indexterm>
<primary>granting</primary>
<secondary>privilege for bos commands</secondary>
</indexterm>
<indexterm>
<primary>granting</primary>
<secondary>privilege for vos commands</secondary>
</indexterm>
<indexterm>
<primary>granting</primary>
<secondary>privilege for backup commands</secondary>
</indexterm>
<para>Although each AFS server machine maintains a separate copy of the file on its local disk, it is conventional to keep all
copies the same. It can be confusing for an administrator to have the privilege on some machines but not others. <indexterm>
<primary>system control machine</primary>
<secondary>as distributor of UserList file</secondary>
</indexterm></para>
<para>If your cell uses the Update Server to distribute the contents of the system
control machine's <emphasis role="bold">/usr/afs/etc</emphasis> directory, then edit only the copy of the <emphasis
role="bold">UserList</emphasis> file stored on the system control machine. If you have forgotten which machine is the system
control machine, see <link linkend="HDRWQ90">The Four Roles for File Server Machines</link>.</para>
<para>To avoid making formatting errors that can result in performance problems, never edit the <emphasis
role="bold">UserList</emphasis> file directly. Instead, use the <emphasis role="bold">bos adduser</emphasis> or <emphasis
role="bold">bos removeuser</emphasis> commands as described in this section. <indexterm>
<primary>UserList file</primary>
<secondary>displaying</secondary>
</indexterm> <indexterm>
<primary>displaying</primary>
<secondary>UserList file</secondary>
</indexterm> <indexterm>
<primary>bos commands</primary>
<secondary>listusers</secondary>
</indexterm> <indexterm>
<primary>commands</primary>
<secondary>bos listusers</secondary>
</indexterm></para>
<sect2 id="HDRWQ593">
<title>To display the users in the UserList file</title>
<orderedlist>
<listitem>
<para>Issue the <emphasis role="bold">bos listusers</emphasis> command to display the contents of the <emphasis
role="bold">/usr/afs/etc/UserList</emphasis> file. <programlisting>
% <emphasis role="bold">bos listusers</emphasis> <<replaceable>machine name</replaceable>>
</programlisting></para>
<para>where <variablelist>
<varlistentry>
<term><emphasis role="bold">listu</emphasis></term>
<listitem>
<para>Is the shortest acceptable abbreviation of <emphasis role="bold">listusers</emphasis>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="bold">machine name</emphasis></term>
<listitem>
<para>Names an AFS server machine. In the normal case, any machine is acceptable because the file is the same on
all of them.</para>
</listitem>
</varlistentry>
</variablelist></para>
</listitem>
</orderedlist>
</sect2>
<sect2 id="HDRWQ594">
<title>To add users to the UserList file</title>
<indexterm>
<primary>UserList file</primary>
<secondary>adding users</secondary>
</indexterm>
<indexterm>
<primary>adding</primary>
<secondary>UserList file users</secondary>
</indexterm>
<indexterm>
<primary>bos commands</primary>
<secondary>adduser</secondary>
</indexterm>
<indexterm>
<primary>commands</primary>
<secondary>bos adduser</secondary>
</indexterm>
<orderedlist>
<listitem>
<para>Verify you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If not, you must have a
qualified administrator add you before you can add entries to it yourself. If necessary, issue the <emphasis
role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To display the users in
the UserList file</link>. <programlisting>
% <emphasis role="bold">bos listusers</emphasis> <<replaceable>machine name</replaceable>>
</programlisting></para>
</listitem>
<listitem>
<para>Issue the <emphasis role="bold">bos adduser</emphasis> command to add one or more users to the <emphasis
role="bold">UserList</emphasis> file. <programlisting>
% <emphasis role="bold">bos adduser</emphasis> <<replaceable>machine name</replaceable>> <<replaceable>user names</replaceable>>+
</programlisting></para>
<para>where <variablelist>
<varlistentry>
<term><emphasis role="bold">addu</emphasis></term>
<listitem>
<para>Is the shortest acceptable abbreviation of <emphasis role="bold">adduser</emphasis>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="bold">machine name</emphasis></term>
<listitem>
<para>Names the system control machine if you use the Update Server to distribute the contents of the <emphasis
role="bold">/usr/afs/etc</emphasis> directory.
By default, it can take up to five minutes for the Update Server to distribute the changes, so newly added users
must wait that long before attempting to issue privileged commands.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="bold">user names</emphasis></term>
<listitem>
<para>Specifies the username of each administrator to add to the <emphasis role="bold">UserList</emphasis>
file.</para>
</listitem>
</varlistentry>
</variablelist></para>
</listitem>
</orderedlist>
</sect2>
<sect2 id="Header_665">
<title>To remove users from the UserList file</title>
<indexterm>
<primary>UserList file</primary>
<secondary>removing users</secondary>
</indexterm>
<indexterm>
<primary>removing</primary>
<secondary>UserList file users</secondary>
</indexterm>
<indexterm>
<primary>bos commands</primary>
<secondary>removeuser</secondary>
</indexterm>
<indexterm>
<primary>commands</primary>
<secondary>bos removeuser</secondary>
</indexterm>
<orderedlist>
<listitem>
<para>Verify you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If not, you must have a
qualified administrator add you before you can remove entries from it yourself. If necessary, issue the <emphasis
role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To display the users in
the UserList file</link>. <programlisting>
% <emphasis role="bold">bos listusers</emphasis> <<replaceable>machine name</replaceable>>
</programlisting></para>
</listitem>
<listitem>
<para>Issue the <emphasis role="bold">bos removeuser</emphasis> command to remove one or more users from the <emphasis
role="bold">UserList</emphasis> file. <programlisting>
% <emphasis role="bold">bos removeuser</emphasis> <<replaceable>machine name</replaceable>> <<replaceable>user names</replaceable>>+
</programlisting></para>
<para>where <variablelist>
<varlistentry>
<term><emphasis role="bold">removeu</emphasis></term>
<listitem>
<para>Is the shortest acceptable abbreviation of <emphasis role="bold">removeuser</emphasis>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="bold">machine name</emphasis></term>
<listitem>
<para>Names the system control machine if you use the Update Server to distribute the contents of the <emphasis
role="bold">/usr/afs/etc</emphasis> directory.
By default, it can take up to five minutes for the Update Server to distribute the change, so newly removed users
can continue to issue privileged commands during that time.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="bold">user names</emphasis></term>
<listitem>
<para>Specifies the username of each administrator to add to the <emphasis role="bold">UserList</emphasis>
file.</para>
</listitem>
</varlistentry>
</variablelist></para>
</listitem>
</orderedlist>
</sect2>
</sect1>
</chapter>
|