1 <?xml version="1.0" encoding="UTF-8"?>
2 <chapter id="HDRWQ133">
3 <title>Installing Additional Client Machines</title>
6 <primary>instructions</primary>
8 <secondary>client machine</secondary>
12 <primary>installing</primary>
14 <secondary>client functionality</secondary>
16 <tertiary>client machine</tertiary>
19 <para>This chapter describes how to install AFS client machines after you have installed the first AFS machine. Some parts of the
20 installation differ depending on whether or not the new client is of the same AFS system type (uses the same AFS binaries) as a
21 previously installed client machine. <indexterm>
22 <primary>overview</primary>
24 <secondary>installing client machine</secondary>
27 <sect1 id="Header_116">
28 <title>Summary of Procedures</title>
32 <para>Incorporate AFS into the machine's kernel</para>
36 <para>Define the machine's cell membership</para>
40 <para>Define cache location and size</para>
44 <para>Create the <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file, which determines which foreign cells the
45 client can access in addition to the local cell</para>
49 <para>Create the <emphasis role="bold">/afs</emphasis> directory and start the Cache Manager</para>
53 <para>Create and mount volumes for housing AFS client binaries (necessary only for clients of a new system type)</para>
57 <para>Create a link from the local <emphasis role="bold">/usr/afsws</emphasis> directory to the AFS directory housing the
58 AFS client binaries</para>
62 <para>Modify the machine's authentication system to enable AFS users to obtain tokens at login</para>
67 <primary>CD-ROM</primary>
69 <secondary>creating /cdrom directory</secondary>
71 <tertiary>client machine</tertiary>
75 <primary>cdrom directory</primary>
77 <secondary>client machine</secondary>
81 <primary>client machine</primary>
83 <secondary>/cdrom directory</secondary>
87 <primary>creating</primary>
89 <secondary>/cdrom directory</secondary>
91 <tertiary>client machine</tertiary>
95 <primary>usr/vice/etc directory</primary>
97 <secondary>client machine</secondary>
101 <primary>client machine</primary>
103 <secondary>/usr/vice/etc directory</secondary>
107 <primary>creating</primary>
109 <secondary>/usr/vice/etc directory</secondary>
111 <tertiary>client machine</tertiary>
115 <sect1 id="HDRWQ134">
116 <title>Creating AFS Directories on the Local Disk</title>
118 <para>Create the <emphasis role="bold">/usr/vice/etc</emphasis> directory on the local disk, to house client binaries and
119 configuration files. Subsequent instructions copy files from the AFS CD-ROM into them. Create the <emphasis
120 role="bold">/cdrom</emphasis> directory as a mount point for the CD-ROM, if it does not already exist.</para>
123 # <emphasis role="bold">mkdir /usr/vice</emphasis>
124 # <emphasis role="bold">mkdir /usr/vice/etc</emphasis>
125 # <emphasis role="bold">mkdir /cdrom</emphasis>
129 <sect1 id="HDRWQ135">
130 <title>Performing Platform-Specific Procedures</title>
132 <para>Every AFS client machine's kernel must incorporate AFS modifications. Some system types use a dynamic kernel loader
133 program, whereas on other system types you build AFS modifications into a static kernel. Some system types support both
136 <para>Also modify the machine's authentication system so that users obtain an AFS token as they log into the local file system.
137 Using AFS is simpler and more convenient for your users if you make the modifications on all client machines. Otherwise, users
138 must perform a two-step login procedure (login to the local file system and then issue the <emphasis role="bold">klog</emphasis>
139 command). For further discussion of AFS authentication, see the chapter in the <emphasis>OpenAFS Administration Guide</emphasis>
140 about cell configuration and administration issues.</para>
142 <para>For convenience, the following sections group the two procedures by system type. Proceed to the appropriate section.
145 <para><link linkend="HDRWQ136">Getting Started on AIX Systems</link></para>
149 <para><link linkend="HDRWQ138">Getting Started on HP-UX Systems</link></para>
153 <para><link linkend="HDRWQ139">Getting Started on IRIX Systems</link></para>
157 <para><link linkend="HDRWQ143">Getting Started on Linux Systems</link></para>
161 <para><link linkend="HDRWQ144">Getting Started on Solaris Systems</link></para>
163 </itemizedlist></para>
166 <primary>incorporating AFS kernel extensions</primary>
168 <secondary>client machine</secondary>
170 <tertiary>AIX</tertiary>
174 <primary>AFS kernel extensions</primary>
176 <secondary>on client machine</secondary>
178 <tertiary>AIX</tertiary>
182 <primary>client machine</primary>
184 <secondary>AFS kernel extensions</secondary>
186 <tertiary>on AIX</tertiary>
190 <primary>AIX</primary>
192 <secondary>AFS kernel extensions</secondary>
194 <tertiary>on client machine</tertiary>
198 <primary>enabling AFS login</primary>
200 <secondary>client machine</secondary>
202 <tertiary>AIX</tertiary>
206 <primary>AFS login</primary>
208 <secondary>on client machine</secondary>
210 <tertiary>AIX</tertiary>
214 <primary>client machine</primary>
216 <secondary>AFS login</secondary>
218 <tertiary>on AIX</tertiary>
222 <primary>AIX</primary>
224 <secondary>AFS login</secondary>
226 <tertiary>on client machine</tertiary>
230 <primary>secondary authentication system (AIX)</primary>
232 <secondary>client machine</secondary>
236 <sect1 id="HDRWQ136">
237 <title>Getting Started on AIX Systems</title>
239 <para>In this section you load AFS into the AIX kernel. Then incorporate AFS modifications into the machine's secondary
240 authentication system, if you wish to enable AFS login.</para>
242 <sect2 id="Header_120">
243 <title>Loading AFS into the AIX Kernel</title>
245 <para>The AIX kernel extension facility is the dynamic kernel loader provided by IBM Corporation. AIX does not support
246 incorporation of AFS modifications during a kernel build.</para>
248 <para>For AFS to function correctly, the kernel extension facility must run each time the machine reboots, so the AFS
249 initialization script (included in the AFS distribution) invokes it automatically. In this section you copy the script to the
250 conventional location and edit it to select the appropriate options depending on whether NFS is also to run.</para>
252 <para>After editing the script, you run it to incorporate AFS into the kernel. In a later section you verify that the script
253 correctly initializes the Cache Manager, then configure the AIX <emphasis role="bold">inittab</emphasis> file so that the
254 script runs automatically at reboot. <orderedlist>
256 <para>Mount the AFS CD-ROM for AIX on the local <emphasis role="bold">/cdrom</emphasis> directory. For instructions on
257 mounting CD-ROMs (either locally or remotely via NFS), see your AIX documentation. Then change directory as indicated.
259 # <emphasis role="bold">cd /cdrom/rs_aix42/root.client/usr/vice/etc</emphasis>
260 </programlisting></para>
264 <para>Copy the AFS kernel library files to the local <emphasis role="bold">/usr/vice/etc/dkload</emphasis> directory,
265 and the AFS initialization script to the <emphasis role="bold">/etc</emphasis> directory. <programlisting>
266 # <emphasis role="bold">cp -rp dkload /usr/vice/etc</emphasis>
267 # <emphasis role="bold">cp -p rc.afs /etc/rc.afs</emphasis>
268 </programlisting></para>
272 <para>Edit the <emphasis role="bold">/etc/rc.afs</emphasis> script, setting the <computeroutput>NFS</computeroutput>
273 variable as indicated.</para>
275 <para>If the machine is not to function as an NFS/AFS Translator, set the <computeroutput>NFS</computeroutput> variable
282 <para>If the machine is to function as an NFS/AFS Translator and is running AIX 4.2.1 or higher, set the
283 <computeroutput>NFS</computeroutput> variable as follows. Note that NFS must already be loaded into the kernel, which
284 happens automatically on systems running AIX 4.1.1 and later, as long as the file <emphasis
285 role="bold">/etc/exports</emphasis> exists.</para>
293 <para>Invoke the <emphasis role="bold">/etc/rc.afs</emphasis> script to load AFS modifications into the kernel. You can
294 ignore any error messages about the inability to start the BOS Server or the Cache Manager or AFS client.
296 # <emphasis role="bold">/etc/rc.afs</emphasis>
297 </programlisting></para>
299 </orderedlist></para>
302 <sect2 id="Header_121">
303 <title>Enabling AFS Login on AIX Systems</title>
305 <para>Now incorporate AFS into the AIX secondary authentication system. <orderedlist>
307 <para>Issue the <emphasis role="bold">ls</emphasis> command to verify that the <emphasis
308 role="bold">afs_dynamic_auth</emphasis> and <emphasis role="bold">afs_dynamic_kerbauth</emphasis> programs are installed
309 in the local <emphasis role="bold">/usr/vice/etc</emphasis> directory. <programlisting>
310 # <emphasis role="bold">ls /usr/vice/etc</emphasis>
311 </programlisting></para>
313 <para>If the files do not exist, mount the AFS CD-ROM for AIX (if it is not already), change directory as indicated, and
317 # <emphasis role="bold">cd /cdrom/rs_aix42/root.client/usr/vice/etc</emphasis>
318 # <emphasis role="bold">cp -p afs_dynamic* /usr/vice/etc</emphasis>
323 <para>Edit the local <emphasis role="bold">/etc/security/user</emphasis> file, making changes to the indicated stanzas:
326 <para>In the default stanza, set the <computeroutput>registry</computeroutput> attribute to <emphasis
327 role="bold">DCE</emphasis> (not to <emphasis role="bold">AFS</emphasis>), as follows: <programlisting>
329 </programlisting></para>
333 <para>In the default stanza, set the <computeroutput>SYSTEM</computeroutput> attribute as indicated.</para>
335 <para>If the machine is an AFS client only, set the following value:</para>
338 SYSTEM = "AFS OR (AFS[UNAVAIL] AND compat[SUCCESS])"
341 <para>If the machine is both an AFS and a DCE client, set the following value (it must appear on a single line in
345 SYSTEM = "DCE OR DCE[UNAVAIL] OR AFS OR (AFS[UNAVAIL] \
346 AND compat[SUCCESS])"
351 <para>In the <computeroutput>root</computeroutput> stanza, set the <computeroutput>registry</computeroutput>
352 attribute as follows. It enables the local superuser <emphasis role="bold">root</emphasis> to log into the local
353 file system only, based on the password listed in the local password file. <programlisting>
356 </programlisting></para>
358 </itemizedlist></para>
362 <para>Edit the local <emphasis role="bold">/etc/security/login.cfg</emphasis> file, creating or editing the indicated
363 stanzas: <itemizedlist>
365 <para>In the <computeroutput>DCE</computeroutput> stanza, set the <computeroutput>program</computeroutput>
366 attribute as follows.</para>
368 <para>If you use the AFS Authentication Server (<emphasis role="bold">kaserver</emphasis> process):</para>
372 program = /usr/vice/etc/afs_dynamic_auth
375 <para>If you use a Kerberos implementation of AFS authentication:</para>
379 program = /usr/vice/etc/afs_dynamic_kerbauth
384 <para>In the <computeroutput>AFS</computeroutput> stanza, set the <computeroutput>program</computeroutput>
385 attribute as follows.</para>
387 <para>If you use the AFS Authentication Server (<emphasis role="bold">kaserver</emphasis> process):</para>
391 program = /usr/vice/etc/afs_dynamic_auth
394 <para>If you use a Kerberos implementation of AFS authentication:</para>
398 program = /usr/vice/etc/afs_dynamic_kerbauth
401 </itemizedlist></para>
405 <para>Proceed to <link linkend="HDRWQ145">Loading and Creating Client Files</link>.</para>
407 </orderedlist></para>
410 <primary>incorporating AFS kernel extensions</primary>
412 <secondary>client machine</secondary>
414 <tertiary>HP-UX</tertiary>
418 <primary>AFS kernel extensions</primary>
420 <secondary>on client machine</secondary>
422 <tertiary>HP-UX</tertiary>
426 <primary>client machine</primary>
428 <secondary>AFS kernel extensions</secondary>
430 <tertiary>on HP-UX</tertiary>
434 <primary>HP-UX</primary>
436 <secondary>AFS-modified kernel</secondary>
438 <tertiary>on client machine</tertiary>
442 <primary>enabling AFS login</primary>
444 <secondary>client machine</secondary>
446 <tertiary>HP-UX</tertiary>
450 <primary>AFS login</primary>
452 <secondary>on client machine</secondary>
454 <tertiary>HP-UX</tertiary>
458 <primary>client machine</primary>
460 <secondary>AFS login</secondary>
462 <tertiary>on HP-UX</tertiary>
466 <primary>HP-UX</primary>
468 <secondary>AFS login</secondary>
470 <tertiary>on client machine</tertiary>
474 <primary>PAM</primary>
476 <secondary>on HP-UX</secondary>
478 <tertiary>client machine</tertiary>
483 <sect1 id="HDRWQ138">
484 <title>Getting Started on HP-UX Systems</title>
486 <para>In this section you build AFS into the HP-UX kernel. Then incorporate AFS modifications into the machine's Pluggable
487 Authentication Module (PAM) system, if you wish to enable AFS login.</para>
489 <sect2 id="Header_126">
490 <title>Building AFS into the HP-UX Kernel</title>
492 <para>On HP-UX systems, you must build AFS modifications into a new static kernel; HP-UX does not support dynamic loading. If
493 the machine's hardware and software configuration exactly matches another HP-UX machine on which AFS is already built into the
494 kernel, you can choose to copy the kernel from that machine to this one. In general, however, it is better to build AFS
495 modifications into the kernel on each machine according to the following instructions. <orderedlist>
497 <para>Move the existing kernel-related files to a safe location. <programlisting>
498 # <emphasis role="bold">cp /stand/vmunix /stand/vmunix.noafs</emphasis>
499 # <emphasis role="bold">cp /stand/system /stand/system.noafs</emphasis>
500 </programlisting></para>
504 <para>Mount the AFS CD-ROM for HP-UX on the local <emphasis role="bold">/cdrom</emphasis> directory. For instructions on
505 mounting CD-ROMs (either locally or remotely via NFS), see your HP-UX documentation. Then change directory as indicated.
507 # <emphasis role="bold">cd /cdrom/hp_ux110/root.client</emphasis>
508 </programlisting></para>
512 <para>Copy the AFS initialization file to the local directory for initialization files (by convention, <emphasis
513 role="bold">/sbin/init.d</emphasis> on HP-UX machines). Note the removal of the <emphasis role="bold">.rc</emphasis>
514 extension as you copy the file. <programlisting>
515 # <emphasis role="bold">cp usr/vice/etc/afs.rc /sbin/init.d/afs</emphasis>
516 </programlisting></para>
520 <para>Copy the file <emphasis role="bold">afs.driver</emphasis> to the local <emphasis
521 role="bold">/usr/conf/master.d</emphasis> directory, changing its name to <emphasis role="bold">afs</emphasis> as you
523 # <emphasis role="bold">cp usr/vice/etc/afs.driver /usr/conf/master.d/afs</emphasis>
524 </programlisting></para>
528 <para>Copy the AFS kernel module to the local <emphasis role="bold">/usr/conf/lib</emphasis> directory.</para>
530 <para>If the machine's kernel supports NFS server functionality:</para>
533 # <emphasis role="bold">cp bin/libafs.a /usr/conf/lib</emphasis>
536 <para>If the machine's kernel does not support NFS server functionality, change the file's name as you copy it:</para>
539 # <emphasis role="bold">cp bin/libafs.nonfs.a /usr/conf/lib/libafs.a</emphasis>
544 <para>Incorporate the AFS driver into the kernel, either using the <emphasis role="bold">SAM</emphasis> program or a
545 series of individual commands. <itemizedlist>
547 <para>To use the <emphasis role="bold">SAM</emphasis> program: <orderedlist>
549 <para>Invoke the <emphasis role="bold">SAM</emphasis> program, specifying the hostname of the local machine
550 as <replaceable>local_hostname</replaceable>. The <emphasis role="bold">SAM</emphasis> graphical user
551 interface pops up. <programlisting>
552 # <emphasis role="bold">sam -display</emphasis> <replaceable>local_hostname</replaceable><emphasis role="bold">:0</emphasis>
553 </programlisting></para>
557 <para>Choose the <emphasis role="bold">Kernel Configuration</emphasis> icon, then the <emphasis
558 role="bold">Drivers</emphasis> icon. From the list of drivers, select <emphasis
559 role="bold">afs</emphasis>.</para>
563 <para>Open the pull-down <emphasis role="bold">Actions</emphasis> menu and choose the <emphasis
564 role="bold">Add Driver to Kernel</emphasis> option.</para>
568 <para>Open the <emphasis role="bold">Actions</emphasis> menu again and choose the <emphasis
569 role="bold">Create a New Kernel</emphasis> option.</para>
573 <para>Confirm your choices by choosing <emphasis role="bold">Yes</emphasis> and <emphasis
574 role="bold">OK</emphasis> when prompted by subsequent pop-up windows. The <emphasis
575 role="bold">SAM</emphasis> program builds the kernel and reboots the system.</para>
579 <para>Login again as the superuser <emphasis role="bold">root</emphasis>. <programlisting>
580 login: <emphasis role="bold">root</emphasis>
581 Password: <replaceable>root_password</replaceable>
582 </programlisting></para>
584 </orderedlist></para>
588 <para>To use individual commands: <orderedlist>
590 <para>Edit the file <emphasis role="bold">/stand/system</emphasis>, adding an entry for <emphasis
591 role="bold">afs</emphasis> to the <computeroutput>Subsystems</computeroutput> section.</para>
595 <para>Change to the <emphasis role="bold">/stand/build</emphasis> directory and issue the <emphasis
596 role="bold">mk_kernel</emphasis> command to build the kernel. <programlisting>
597 # <emphasis role="bold">cd /stand/build</emphasis>
598 # <emphasis role="bold">mk_kernel</emphasis>
599 </programlisting></para>
603 <para>Move the new kernel to the standard location (<emphasis role="bold">/stand/vmunix</emphasis>), reboot
604 the machine to start using it, and login again as the superuser <emphasis role="bold">root</emphasis>.
606 # <emphasis role="bold">mv /stand/build/vmunix_test /stand/vmunix</emphasis>
607 # <emphasis role="bold">cd /</emphasis>
608 # <emphasis role="bold">shutdown -r now</emphasis>
609 login: <emphasis role="bold">root</emphasis>
610 Password: <replaceable>root_password</replaceable>
611 </programlisting></para>
613 </orderedlist></para>
615 </itemizedlist></para>
617 </orderedlist></para>
620 <sect2 id="Header_127">
621 <title>Enabling AFS Login on HP-UX Systems</title>
623 <para>At this point you incorporate AFS into the operating system's Pluggable Authentication Module (PAM) scheme. PAM
624 integrates all authentication mechanisms on the machine, including login, to provide the security infrastructure for
625 authenticated access to and from the machine.</para>
627 <para>Explaining PAM is beyond the scope of this document. It is assumed that you understand the syntax and meanings of
628 settings in the PAM configuration file (for example, how the <computeroutput>other</computeroutput> entry works, the effect of
629 marking an entry as <computeroutput>required</computeroutput>, <computeroutput>optional</computeroutput>, or
630 <computeroutput>sufficient</computeroutput>, and so on).</para>
632 <para>The following instructions explain how to alter the entries in the PAM configuration file for each service for which you
633 wish to use AFS authentication. Other configurations possibly also work, but the instructions specify the recommended and
634 tested configuration.</para>
637 <para>The instructions specify that you mark each entry as <computeroutput>optional</computeroutput>. However, marking some
638 modules as optional can mean that they grant access to the corresponding service even when the user does not meet all of the
639 module's requirements. In some operating system revisions, for example, if you mark as optional the module that controls
640 login via a dial-up connection, it allows users to login without providing a password. See the <emphasis>OpenAFS Release
641 Notes</emphasis> for a discussion of any limitations that apply to this operating system.</para>
643 <para>Also, with some operating system versions you must install patches for PAM to interact correctly with certain
644 authentication programs. For details, see the <emphasis>OpenAFS Release Notes</emphasis>.</para>
647 <para>The recommended AFS-related entries in the PAM configuration file make use of one or more of the following three
648 attributes. <variablelist>
650 <term><emphasis role="bold"><computeroutput>try_first_pass</computeroutput></emphasis></term>
653 <para>This is a standard PAM attribute that can be included on entries after the first one for a service; it directs
654 the module to use the password that was provided to the first module. For the AFS module, it means that AFS
655 authentication succeeds if the password provided to the module listed first is the user's correct AFS password. For
656 further discussion of this attribute and its alternatives, see the operating system's PAM documentation.</para>
661 <term><emphasis role="bold"><computeroutput>ignore_root</computeroutput></emphasis></term>
664 <para>This attribute, specific to the AFS PAM module, directs it to ignore not only the local superuser <emphasis
665 role="bold">root</emphasis>, but also any user with UID 0 (zero).</para>
670 <term><emphasis role="bold"><computeroutput>setenv_password_expires</computeroutput></emphasis></term>
673 <para>This attribute, specific to the AFS PAM module, sets the environment variable PASSWORD_EXPIRES to the expiration
674 date of the user's AFS password, which is recorded in the Authentication Database.</para>
677 </variablelist></para>
679 <para>Perform the following steps to enable AFS login. <orderedlist>
681 <para>Mount the AFS CD-ROM for HP-UX on the <emphasis role="bold">/cdrom</emphasis> directory, if it is not already.
682 Then change directory as indicated. <programlisting>
683 # <emphasis role="bold">cd /usr/lib/security</emphasis>
684 </programlisting></para>
688 <para>Copy the AFS authentication library file to the <emphasis role="bold">/usr/lib/security</emphasis> directory. Then
689 create a symbolic link to it whose name does not mention the version. Omitting the version eliminates the need to edit
690 the PAM configuration file if you later update the library file.</para>
692 <para>If you use the AFS Authentication Server (<emphasis role="bold">kaserver</emphasis> process) in the cell:</para>
695 # <emphasis role="bold">cp /cdrom/hp_ux110/lib/pam_afs.so.1 .</emphasis>
696 # <emphasis role="bold">ln -s pam_afs.so.1 pam_afs.so</emphasis>
699 <para>If you use a Kerberos implementation of AFS authentication:</para>
702 # <emphasis role="bold">cp /cdrom/hp_ux110/lib/pam_afs.krb.so.1 .</emphasis>
703 # <emphasis role="bold">ln -s pam_afs.krb.so.1 pam_afs.so</emphasis>
708 <para>Edit the <computeroutput>Authentication management</computeroutput> section of the HP-UX PAM configuration file,
709 <emphasis role="bold">/etc/pam.conf</emphasis> by convention. The entries in this section have the value
710 <computeroutput>auth</computeroutput> in their second field.</para>
712 <para>First edit the standard entries, which refer to the HP-UX PAM module (usually, the file <emphasis
713 role="bold">/usr/lib/security/libpam_unix.1</emphasis>) in their fourth field. For each service for which you want to
714 use AFS authentication, edit the third field of its entry to read <computeroutput>optional</computeroutput>. The
715 <emphasis role="bold">pam.conf</emphasis> file in the HP-UX distribution usually includes standard entries for the
716 <emphasis role="bold">login</emphasis> and <emphasis role="bold">ftp</emphasis> services, for instance.</para>
718 <para>If there are services for which you want to use AFS authentication, but for which the <emphasis
719 role="bold">pam.conf</emphasis> file does not already include a standard entry, you must create that entry and place the
720 value <computeroutput>optional</computeroutput> in its third field. For instance, the HP-UX <emphasis
721 role="bold">pam.conf</emphasis> file does not usually include standard entries for the <emphasis
722 role="bold">remsh</emphasis> or <emphasis role="bold">telnet</emphasis> services.</para>
724 <para>Then create an AFS-related entry for each service, placing it immediately below the standard entry. The following
725 example shows what the <computeroutput>Authentication Management</computeroutput> section looks like after you have you
726 edited or created entries for the services mentioned previously. Note that the example AFS entries appear on two lines
727 only for legibility.</para>
730 login auth optional /usr/lib/security/libpam_unix.1
731 login auth optional /usr/lib/security/pam_afs.so \
732 try_first_pass ignore_root setenv_password_expires
733 ftp auth optional /usr/lib/security/libpam_unix.1
734 ftp auth optional /usr/lib/security/pam_afs.so \
735 try_first_pass ignore_root
736 remsh auth optional /usr/lib/security/libpam_unix.1
737 remsh auth optional /usr/lib/security/pam_afs.so \
738 try_first_pass ignore_root
739 telnet auth optional /usr/lib/security/libpam_unix.1
740 telnet auth optional /usr/lib/security/pam_afs.so \
741 try_first_pass ignore_root setenv_password_expires
746 <para>If you use the Common Desktop Environment (CDE) on the machine and want users to obtain an AFS token as they log
747 in, also add or edit the following four entries in the <computeroutput>Authentication management</computeroutput>
748 section. Note that the AFS-related entries appear on two lines here only for legibility. <programlisting>
749 dtlogin auth optional /usr/lib/security/libpam_unix.1
750 dtlogin auth optional /usr/lib/security/pam_afs.so \
751 try_first_pass ignore_root
752 dtaction auth optional /usr/lib/security/libpam_unix.1
753 dtaction auth optional /usr/lib/security/pam_afs.so \
754 try_first_pass ignore_root
755 </programlisting></para>
759 <para>Proceed to <link linkend="HDRWQ145">Loading and Creating Client Files</link>.</para>
761 </orderedlist></para>
764 <primary>incorporating AFS kernel extensions</primary>
766 <secondary>client machine</secondary>
768 <tertiary>IRIX</tertiary>
772 <primary>AFS kernel extensions</primary>
774 <secondary>on client machine</secondary>
776 <tertiary>IRIX</tertiary>
780 <primary>client machine</primary>
782 <secondary>AFS kernel extensions</secondary>
784 <tertiary>on IRIX</tertiary>
789 <sect1 id="HDRWQ139">
790 <title>Getting Started on IRIX Systems</title>
792 <para>In this section you incorporate AFS into the IRIX kernel, choosing one of two methods: <itemizedlist>
794 <para>Dynamic loading using the <emphasis role="bold">ml</emphasis> program distributed by Silicon Graphics, Incorporated
799 <para>Building a new static kernel.</para>
801 </itemizedlist></para>
803 <para>Then see <link linkend="HDRWQ142">Enabling AFS Login on IRIX Systems</link> to read about integrated AFS login on IRIX
806 <para>In preparation for either dynamic loading or kernel building, perform the following procedures: <orderedlist>
808 <para>Mount the AFS CD-ROM for IRIX on the <emphasis role="bold">/cdrom</emphasis> directory. For instructions on mounting
809 CD-ROMs (either locally or remotely via NFS), see your IRIX documentation. Then change directory as indicated.
811 # <emphasis role="bold">cd /cdrom/sgi_65/root.client</emphasis>
812 </programlisting></para>
816 <para>Copy the AFS initialization script to the local directory for initialization files (by convention, <emphasis
817 role="bold">/etc/init.d</emphasis> on IRIX machines). Note the removal of the <emphasis role="bold">.rc</emphasis>
818 extension as you copy the script. <programlisting>
819 # <emphasis role="bold">cp -p usr/vice/etc/afs.rc /etc/init.d/afs</emphasis>
820 </programlisting></para>
824 <para>Issue the <emphasis role="bold">uname -m</emphasis> command to determine the machine's CPU board type. The <emphasis
825 role="bold">IP</emphasis><replaceable>xx</replaceable> value in the output must match one of the supported CPU board types
826 listed in the <emphasis>OpenAFS Release Notes</emphasis> for the current version of AFS. <programlisting>
827 # <emphasis role="bold">uname -m</emphasis>
828 </programlisting></para>
832 <para>Proceed to either <link linkend="HDRWQ140">Loading AFS into the IRIX Kernel</link> or <link
833 linkend="HDRWQ141">Building AFS into the IRIX Kernel</link>.</para>
835 </orderedlist></para>
838 <primary>IRIX</primary>
840 <secondary>AFS kernel extensions</secondary>
842 <tertiary>on client machine</tertiary>
846 <primary>afsml variable (IRIX)</primary>
848 <secondary>client machine</secondary>
852 <primary>variables</primary>
854 <secondary>afsml (IRIX)</secondary>
856 <tertiary>client machine</tertiary>
860 <primary>IRIX</primary>
862 <secondary>afsml variable</secondary>
864 <tertiary>client machine</tertiary>
868 <primary>afsxnfs variable (IRIX)</primary>
870 <secondary>client machine</secondary>
874 <primary>variables</primary>
876 <secondary>afsxnfs (IRIX)</secondary>
878 <tertiary>client machine</tertiary>
882 <primary>IRIX</primary>
884 <secondary>afsxnfs variable</secondary>
886 <tertiary>client machine</tertiary>
889 <sect2 id="HDRWQ140">
890 <title>Loading AFS into the IRIX Kernel</title>
892 <para>The <emphasis role="bold">ml</emphasis> program is the dynamic kernel loader provided by SGI for IRIX systems. If you
893 use it rather than building AFS modifications into a static kernel, then for AFS to function correctly the <emphasis
894 role="bold">ml</emphasis> program must run each time the machine reboots. Therefore, the AFS initialization script (included
895 on the AFS CD-ROM) invokes it automatically when the <emphasis role="bold">afsml</emphasis> configuration variable is
896 activated. In this section you activate the variable and run the script.</para>
898 <para>In a later section you verify that the script correctly initializes the Cache Manager, then create the links that
899 incorporate AFS into the IRIX startup and shutdown sequence. <orderedlist>
901 <para>Create the local <emphasis role="bold">/usr/vice/etc/sgiload</emphasis> directory to house the AFS kernel library
902 file. <programlisting>
903 # <emphasis role="bold">mkdir /usr/vice/etc/sgiload</emphasis>
904 </programlisting></para>
908 <para>Copy the appropriate AFS kernel library file to the <emphasis role="bold">/usr/vice/etc/sgiload</emphasis>
909 directory. The <emphasis role="bold">IP</emphasis><replaceable>xx</replaceable> portion of the library file name must
910 match the value previously returned by the <emphasis role="bold">uname -m</emphasis> command. Also choose the file
911 appropriate to whether the machine's kernel supports NFS server functionality (NFS must be supported for the machine to
912 act as an NFS/AFS Translator). Single- and multiprocessor machines use the same library file.</para>
914 <para>(You can choose to copy all of the kernel library files into the <emphasis
915 role="bold">/usr/vice/etc/sgiload</emphasis> directory, but they require a significant amount of space.)</para>
917 <para>If the machine's kernel supports NFS server functionality:</para>
920 # <emphasis role="bold">cp -p usr/vice/etc/sgiload/libafs.IP</emphasis><replaceable>xx</replaceable><emphasis role="bold">.o /usr/vice/etc/sgiload</emphasis>
923 <para>If the machine's kernel does not support NFS server functionality:</para>
926 # <emphasis role="bold">cp -p usr/vice/etc/sgiload/libafs.IP</emphasis><replaceable>xx</replaceable><emphasis role="bold">.nonfs.o</emphasis> \
927 <emphasis role="bold">/usr/vice/etc/sgiload</emphasis>
932 <para>Issue the <emphasis role="bold">chkconfig</emphasis> command to activate the <emphasis
933 role="bold">afsml</emphasis> configuration variable. <programlisting>
934 # <emphasis role="bold">/etc/chkconfig -f afsml on</emphasis>
935 </programlisting></para>
937 <para>If the machine is to function as an NFS/AFS Translator and the kernel supports NFS server functionality, activate
938 the <emphasis role="bold">afsxnfs</emphasis> variable.</para>
941 # <emphasis role="bold">/etc/chkconfig -f afsxnfs on</emphasis>
946 <para>Run the <emphasis role="bold">/etc/init.d/afs</emphasis> script to load AFS extensions into the kernel. The script
947 invokes the <emphasis role="bold">ml</emphasis> command, automatically determining which kernel library file to use
948 based on this machine's CPU type and the activation state of the <emphasis role="bold">afsxnfs</emphasis>
951 <para>You can ignore any error messages about the inability to start the BOS Server or the Cache Manager or AFS
955 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
960 <para>Proceed to <link linkend="HDRWQ142">Enabling AFS Login on IRIX Systems</link>.</para>
962 </orderedlist></para>
965 <primary>IRIX</primary>
967 <secondary>AFS-modified kernel</secondary>
969 <tertiary>on client machine</tertiary>
973 <sect2 id="HDRWQ141">
974 <title>Building AFS into the IRIX Kernel</title>
976 <para>If you prefer to build a kernel, and the machine's hardware and software configuration exactly matches another IRIX
977 machine on which AFS is already built into the kernel, you can choose to copy the kernel from that machine to this one. In
978 general, however, it is better to build AFS modifications into the kernel on each machine according to the following
979 instructions. <orderedlist>
981 <para>Copy the kernel initialization file <emphasis role="bold">afs.sm</emphasis> to the local <emphasis
982 role="bold">/var/sysgen/system</emphasis> directory, and the kernel master file <emphasis role="bold">afs</emphasis> to
983 the local <emphasis role="bold">/var/sysgen/master.d</emphasis> directory. <programlisting>
984 # <emphasis role="bold">cp -p bin/afs.sm /var/sysgen/system</emphasis>
985 # <emphasis role="bold">cp -p bin/afs /var/sysgen/master.d</emphasis>
986 </programlisting></para>
990 <para>Copy the appropriate AFS kernel library file to the local file <emphasis
991 role="bold">/var/sysgen/boot/afs.a</emphasis>; the <emphasis role="bold">IP</emphasis><replaceable>xx</replaceable>
992 portion of the library file name must match the value previously returned by the <emphasis role="bold">uname
993 -m</emphasis> command. Also choose the file appropriate to whether the machine's kernel supports NFS server
994 functionality (NFS must be supported for the machine to act as an NFS/AFS Translator). Single- and multiprocessor
995 machines use the same library file.</para>
997 <para>If the machine's kernel supports NFS server functionality:</para>
1000 # <emphasis role="bold">cp -p bin/libafs.IP</emphasis><replaceable>xx</replaceable><emphasis role="bold">.a /var/sysgen/boot/afs.a</emphasis>
1003 <para>If the machine's kernel does not support NFS server functionality:</para>
1006 # <emphasis role="bold">cp -p bin/libafs.IP</emphasis><replaceable>xx</replaceable><emphasis role="bold">.nonfs.a /var/sysgen/boot/afs.a</emphasis>
1011 <para>Issue the <emphasis role="bold">chkconfig</emphasis> command to deactivate the <emphasis
1012 role="bold">afsml</emphasis> configuration variable. <programlisting>
1013 # <emphasis role="bold">/etc/chkconfig -f afsml off</emphasis>
1014 </programlisting></para>
1016 <para>If the machine is to function as an NFS/AFS Translator and the kernel supports NFS server functionality, activate
1017 the <emphasis role="bold">afsxnfs</emphasis> variable.</para>
1020 # <emphasis role="bold">/etc/chkconfig -f afsxnfs on</emphasis>
1025 <para>Copy the existing kernel file, <emphasis role="bold">/unix</emphasis>, to a safe location. Compile the new kernel,
1026 which is created in the file <emphasis role="bold">/unix.install</emphasis>. It overwrites the existing <emphasis
1027 role="bold">/unix</emphasis> file when the machine reboots in the next step. <programlisting>
1028 # <emphasis role="bold">cp /unix /unix_noafs</emphasis>
1029 # <emphasis role="bold">autoconfig</emphasis>
1030 </programlisting></para>
1034 <para>Reboot the machine to start using the new kernel, and login again as the superuser <emphasis
1035 role="bold">root</emphasis>. <programlisting>
1036 # <emphasis role="bold">cd /</emphasis>
1037 # <emphasis role="bold">shutdown -i6 -g0 -y</emphasis>
1038 login: <emphasis role="bold">root</emphasis>
1039 Password: <replaceable>root_password</replaceable>
1040 </programlisting></para>
1044 <para>Proceed to <link linkend="HDRWQ142">Enabling AFS Login on IRIX Systems</link>.</para>
1046 </orderedlist></para>
1049 <primary>enabling AFS login</primary>
1051 <secondary>client machine</secondary>
1053 <tertiary>IRIX</tertiary>
1057 <primary>AFS login</primary>
1059 <secondary>on client machine</secondary>
1061 <tertiary>IRIX</tertiary>
1065 <primary>client machine</primary>
1067 <secondary>AFS login</secondary>
1069 <tertiary>on IRIX</tertiary>
1073 <sect2 id="HDRWQ142">
1074 <title>Enabling AFS Login on IRIX Systems</title>
1076 <para>The standard IRIX command-line <emphasis role="bold">login</emphasis> program and the graphical <emphasis
1077 role="bold">xdm</emphasis> login program both automatically grant an AFS token when AFS is incorporated into the machine's
1078 kernel. However, some IRIX distributions use another login utility by default, and it does not necessarily incorporate the
1079 required AFS modifications. If that is the case, you must disable the default utility if you want AFS users to obtain AFS
1080 tokens at login. For further discussion, see the <emphasis>OpenAFS Release Notes</emphasis>.</para>
1082 <para>If you configure the machine to use an AFS-modified login utility, then the <emphasis
1083 role="bold">afsauthlib.so</emphasis> and <emphasis role="bold">afskauthlib.so</emphasis> files (included in the AFS
1084 distribution) must reside in the <emphasis role="bold">/usr/vice/etc</emphasis> directory. Issue the <emphasis
1085 role="bold">ls</emphasis> command to verify.</para>
1088 # <emphasis role="bold">ls /usr/vice/etc</emphasis>
1091 <para>If the files do not exist, mount the AFS CD-ROM for IRIX (if it is not already), change directory as indicated, and copy
1095 # <emphasis role="bold">cd /cdrom/sgi_65/root.client/usr/vice/etc</emphasis>
1096 # <emphasis role="bold">cp -p *authlib* /usr/vice/etc</emphasis>
1099 <para>After taking any necessary action, proceed to <link linkend="HDRWQ145">Loading and Creating Client Files</link>.
1101 <primary>incorporating AFS kernel extensions</primary>
1103 <secondary>client machine</secondary>
1105 <tertiary>Linux</tertiary>
1106 </indexterm> <indexterm>
1107 <primary>AFS kernel extensions</primary>
1109 <secondary>on client machine</secondary>
1111 <tertiary>Linux</tertiary>
1112 </indexterm> <indexterm>
1113 <primary>client machine</primary>
1115 <secondary>AFS kernel extensions</secondary>
1117 <tertiary>on Linux</tertiary>
1118 </indexterm> <indexterm>
1119 <primary>Linux</primary>
1121 <secondary>AFS kernel extensions</secondary>
1123 <tertiary>on client machine</tertiary>
1124 </indexterm> <indexterm>
1125 <primary>enabling AFS login</primary>
1127 <secondary>client machine</secondary>
1129 <tertiary>Linux</tertiary>
1130 </indexterm> <indexterm>
1131 <primary>AFS login</primary>
1133 <secondary>on client machine</secondary>
1135 <tertiary>Linux</tertiary>
1136 </indexterm> <indexterm>
1137 <primary>client machine</primary>
1139 <secondary>AFS login</secondary>
1141 <tertiary>on Linux</tertiary>
1142 </indexterm> <indexterm>
1143 <primary>Linux</primary>
1145 <secondary>AFS login</secondary>
1147 <tertiary>on client machine</tertiary>
1148 </indexterm> <indexterm>
1149 <primary>PAM</primary>
1151 <secondary>on Linux</secondary>
1153 <tertiary>client machine</tertiary>
1158 <sect1 id="HDRWQ143">
1159 <title>Getting Started on Linux Systems</title>
1161 <para>In this section you load AFS into the Linux kernel. Then incorporate AFS modifications into the machine's Pluggable
1162 Authentication Module (PAM) system, if you wish to enable AFS login.</para>
1164 <sect2 id="Header_133">
1165 <title>Loading AFS into the Linux Kernel</title>
1167 <para>The <emphasis role="bold">insmod</emphasis> program is the dynamic kernel loader for Linux. Linux does not support
1168 incorporation of AFS modifications during a kernel build.</para>
1170 <para>For AFS to function correctly, the <emphasis role="bold">insmod</emphasis> program must run each time the machine
1171 reboots, so the AFS initialization script (included on the AFS CD-ROM) invokes it automatically. The script also includes
1172 commands that select the appropriate AFS library file automatically. In this section you run the script.</para>
1174 <para>In a later section you also verify that the script correctly initializes the Cache Manager, then activate a
1175 configuration variable, which results in the script being incorporated into the Linux startup and shutdown sequence.
1178 <para>Mount the AFS CD-ROM for Linux on the local <emphasis role="bold">/cdrom</emphasis> directory. For instructions on
1179 mounting CD-ROMs (either locally or remotely via NFS), see your Linux documentation. Then change directory as indicated.
1181 # <emphasis role="bold">cd /cdrom/i386_linux22/root.client/usr/vice/etc</emphasis>
1182 </programlisting></para>
1186 <para>Copy the AFS kernel library files to the local <emphasis role="bold">/usr/vice/etc/modload</emphasis> directory.
1187 The filenames for the libraries have the format <emphasis
1188 role="bold">libafs-</emphasis><replaceable>version</replaceable><emphasis role="bold">.o</emphasis>, where
1189 <replaceable>version</replaceable> indicates the kernel build level. The string <emphasis role="bold">.mp</emphasis> in
1190 the <replaceable>version</replaceable> indicates that the file is appropriate for machines running a multiprocessor
1191 kernel. <programlisting>
1192 # <emphasis role="bold">cp -rp modload /usr/vice/etc</emphasis>
1193 </programlisting></para>
1197 <para>Copy the AFS initialization script to the local directory for initialization files (by convention, <emphasis
1198 role="bold">/etc/rc.d/init.d</emphasis> on Linux machines). Note the removal of the <emphasis role="bold">.rc</emphasis>
1199 extension as you copy the script. <programlisting>
1200 # <emphasis role="bold">cp -p afs.rc /etc/rc.d/init.d/afs</emphasis>
1201 </programlisting></para>
1205 <para>Run the AFS initialization script to load AFS extensions into the kernel. You can ignore any error messages about
1206 the inability to start the BOS Server or the Cache Manager or AFS client. <programlisting>
1207 # <emphasis role="bold">/etc/rc.d/init.d/afs start</emphasis>
1208 </programlisting></para>
1210 </orderedlist></para>
1213 <sect2 id="Header_134">
1214 <title>Enabling AFS Login on Linux Systems</title>
1216 <para>At this point you incorporate AFS into the operating system's Pluggable Authentication Module (PAM) scheme. PAM
1217 integrates all authentication mechanisms on the machine, including login, to provide the security infrastructure for
1218 authenticated access to and from the machine.</para>
1220 <para>Explaining PAM is beyond the scope of this document. It is assumed that you understand the syntax and meanings of
1221 settings in the PAM configuration file (for example, how the <computeroutput>other</computeroutput> entry works, the effect of
1222 marking an entry as <computeroutput>required</computeroutput>, <computeroutput>optional</computeroutput>, or
1223 <computeroutput>sufficient</computeroutput>, and so on).</para>
1225 <para>The following instructions explain how to alter the entries in the PAM configuration file for each service for which you
1226 wish to use AFS authentication. Other configurations possibly also work, but the instructions specify the recommended and
1227 tested configuration.</para>
1229 <para>The recommended AFS-related entries in the PAM configuration file make use of one or more of the following three
1230 attributes. <variablelist>
1231 <title>Authentication Management</title>
1234 <term><emphasis role="bold"><computeroutput>try_first_pass</computeroutput></emphasis></term>
1237 <para>This is a standard PAM attribute that can be included on entries after the first one for a service; it directs
1238 the module to use the password that was provided to the first module. For the AFS module, it means that AFS
1239 authentication succeeds if the password provided to the module listed first is the user's correct AFS password. For
1240 further discussion of this attribute and its alternatives, see the operating system's PAM documentation.</para>
1245 <term><emphasis role="bold"><computeroutput>ignore_root</computeroutput></emphasis></term>
1248 <para>This attribute, specific to the AFS PAM module, directs it to ignore not only the local superuser <emphasis
1249 role="bold">root</emphasis>, but also any user with UID 0 (zero).</para>
1254 <term><emphasis role="bold"><computeroutput>ignore_uid </computeroutput><emphasis>uid</emphasis></emphasis></term>
1257 <para>This option is an extension of the "ignore_root" switch. The additional parameter is a limit. Users with a uid
1258 up to the given parameter are ignored by <emphasis>pam_afs.so</emphasis>. Thus, a system administrator still has the
1259 opportunity to add local user accounts to his system by choosing between "low" and "high" user ids. An example
1260 /etc/passwd file for "ignore_uid 100" may have entries like these: <programlisting>
1263 afsuserone:x:99:100::/afs/afscell/u/afsuserone:/bin/bash
1264 afsusertwo:x:100:100::/afs/afscell/u/afsusertwo:/bin/bash
1265 localuserone:x:101:100::/home/localuserone:/bin/bash
1266 localusertwo:x:102:100::/home/localusertwo:/bin/bash
1269 </programlisting> AFS accounts should be locked in the file /etc/shadow like this: <programlisting>
1272 afsuserone:!!:11500:0:99999:7:::
1273 afsusertwo:!!:11500:0:99999:7:::
1274 localuserone:<thelocaluserone'skey>:11500:0:99999:7:::
1275 localusertwo:<thelocalusertwo'skey>:11500:0:99999:7:::
1278 </programlisting> There is no need to store a local key in this file since the AFS password is sent and verfied at the AFS cell
1284 <term><emphasis role="bold"><computeroutput>setenv_password_expires</computeroutput></emphasis></term>
1287 <para>This attribute, specific to the AFS PAM module, sets the environment variable PASSWORD_EXPIRES to the expiration
1288 date of the user's AFS password, which is recorded in the Authentication Database.</para>
1293 <term><emphasis role="bold"><computeroutput>set_token</computeroutput></emphasis></term>
1296 <para>Some applications don't call <emphasis>pam_setcred()</emphasis> in order to retrieve the appropriate credentials
1297 (here the AFS token) for their session. This switch sets the credentials already in
1298 <emphasis>pam_sm_authenticate()</emphasis> obsoleting a call to <emphasis>pam_setcred()</emphasis>. <emphasis
1299 role="bold">Caution: Don't use this switch for applications which do call
1300 <emphasis>pam_setcred()</emphasis>!</emphasis> One example for an application not calling
1301 <emphasis>pam_setcred()</emphasis> are older versions of the samba server. Nevertheless, using applications with
1302 working pam session management is recommended as this setup conforms better with the PAM definitions.</para>
1307 <term><emphasis role="bold"><computeroutput>refresh_token</computeroutput></emphasis></term>
1310 <para>This options is identical to "set_token" except that no new PAG is generated. This is necessary to handle
1311 processes like xlock or xscreensaver. It is not enough to give the screen and the keyboard free for the user who
1312 reactivated his screen typing in the correct AFS password, but one may also need fresh tokens with full livetime in
1313 order to work on, and the new token must be refreshed in the already existing PAG for the processes that have been
1314 started. This is achieved using this option.</para>
1319 <term><emphasis role="bold"><computeroutput>use_klog</computeroutput></emphasis></term>
1322 <para>Activating this switch the authentication is done by calling the external program "klog". One program requiring
1323 this is for example <emphasis>kdm</emphasis> of KDE 2.x.</para>
1328 <term><emphasis role="bold"><computeroutput>dont_fork</computeroutput></emphasis></term>
1331 <para>Usually, the password verification and the establishment of the token is performed in a sub process. Using this
1332 option pam_afs does not fork and performs all actions in a single process. <emphasis role="bold">Only use this options
1333 in case you notice serious problems caused by the sub process.</emphasis> This option has been developed in respect to
1334 the "mod_auth_pam"-project (see also <ulink url="http://pam.sourceforge.net/mod_auth_pam/">mod_auth_pam</ulink>). The
1335 mod_auth_pam module enables PAM authentication for the apache http server package.</para>
1338 </variablelist> <variablelist>
1339 <title>Session Management</title>
1342 <term><emphasis role="bold"><computeroutput>no_unlog</computeroutput></emphasis></term>
1345 <para>Normally the tokens are deleted (in memory) after the session ends. Using this options the tokens are left
1346 untouched. <emphasis role="bold">This behaviour has been the default in pam_afs until openafs-1.1.1!</emphasis></para>
1351 <term><emphasis role="bold"><computeroutput>remainlifetime</computeroutput> <emphasis>sec</emphasis></emphasis></term>
1354 <para>The tokens are kept active for <emphasis>sec</emphasis> seconds before they are deleted. X display managers i.e.
1355 are used to inform the applications started in the X session before the logout and then end themselves. If the token
1356 was deleted immediately the applications would have no chance to write back their settings to i.e. the user's AFS home
1357 space. This option may help to avoid the problem.</para>
1360 </variablelist></para>
1362 <para>Perform the following steps to enable AFS login. <orderedlist>
1364 <para>Mount the AFS CD-ROM for Linux on the <emphasis role="bold">/cdrom</emphasis> directory, if it is not already.
1365 Then change to the directory for PAM modules, which depends on which Linux distribution you are using.</para>
1367 <para>If you are using a Linux distribution from Red Hat Software:</para>
1370 # <emphasis role="bold">cd /lib/security</emphasis>
1373 <para>If you are using another Linux distribution:</para>
1376 # <emphasis role="bold">cd /usr/lib/security</emphasis>
1381 <para>Copy the appropriate AFS authentication library file to the directory to which you changed in the previous step.
1382 Create a symbolic link whose name does not mention the version. Omitting the version eliminates the need to edit the PAM
1383 configuration file if you later update the library file.</para>
1385 <para>If you use the AFS Authentication Server (<emphasis role="bold">kaserver</emphasis> process):</para>
1388 # <emphasis role="bold">cp /cdrom/i386_linux22/lib/pam_afs.so.1 .</emphasis>
1389 # <emphasis role="bold">ln -s pam_afs.so.1 pam_afs.so</emphasis>
1392 <para>If you use a Kerberos implementation of AFS authentication:</para>
1395 # <emphasis role="bold">cp /cdrom/i386_linux22/lib/pam_afs.krb.so.1 .</emphasis>
1396 # <emphasis role="bold">ln -s pam_afs.krb.so.1 pam_afs.so</emphasis>
1401 <para>For each service with which you want to use AFS authentication, insert an entry for the AFS PAM module into the
1402 <computeroutput>auth</computeroutput> section of the service's PAM configuration file. (Linux uses a separate
1403 configuration file for each service, unlike some other operating systems which list all services in a single file.) Mark
1404 the entry as <computeroutput>sufficient</computeroutput> in the second field.</para>
1406 <para>Place the AFS entry below any entries that impose conditions under which you want the service to fail for a user
1407 who does not meet the entry's requirements. Mark these entries <computeroutput>required</computeroutput>. Place the AFS
1408 entry above any entries that need to execute only if AFS authentication fails.</para>
1410 <para>Insert the following AFS entry if using the Red Hat distribution:</para>
1413 auth sufficient /lib/security/pam_afs.so try_first_pass ignore_root
1416 <para>Insert the following AFS entry if using another distribution:</para>
1419 auth sufficient /usr/lib/security/pam_afs.so try_first_pass ignore_root
1422 <para>Check the PAM config files also for "session" entries. If there are lines beginning with "session" then please
1423 insert this line too:</para>
1426 session optional /lib/security/pam_afs.so
1432 session optional /usr/lib/security/pam_afs.so
1435 <para>This guarantees that the user's tokens are deleted from memory after his session ends so that no other user
1436 coincidently gets those tokens without authorization! The following examples illustrate the recommended configuration of
1437 the configuration file for several services: <variablelist>
1438 <title>Authentication Management</title>
1441 <term>(<emphasis role="bold">/etc/pam.d/login</emphasis>)</term>
1444 <para><programlisting>
1446 auth required /lib/security/pam_securetty.so
1447 auth required /lib/security/pam_nologin.so
1448 auth sufficient /lib/security/pam_afs.so try_first_pass ignore_root
1449 # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1450 #This enables AFS authentication for every user but root
1451 auth required /lib/security/pam_pwdb.so shadow nullok
1452 account required /lib/security/pam_pwdb.so
1453 password required /lib/security/pam_cracklib.so
1454 password required /lib/security/pam_pwdb.so shadow nullok use_authtok
1455 session optional /lib/security/pam_afs.so
1456 #Make sure tokens are deleted after the user logs out
1457 session required /lib/security/pam_pwdb.so
1458 </programlisting></para>
1463 <term>(<emphasis role="bold">/etc/pam.d/samba</emphasis>)</term>
1466 <para><programlisting>
1467 auth required /lib/security/pam_afs.so ignore_uid 100 set_token
1468 # ^^^^^^^^^^^^^^^^^^^^^^^^
1469 #Here, users with uid>100 are considered to belong to the AFS and users
1470 #with uid<=100 are ignored by pam_afs. The token is retrieved already in
1471 #pam_sm_authenticate() (this is an example pam config for a samba version
1472 #that does not call pam_setcred(), it also does no sense to include session
1473 #entries here since they would be ignored by this version of samba ).
1474 account required /lib/security/pam_pwdb.so
1475 </programlisting></para>
1480 <term>(<emphasis role="bold">/etc/pam.d/xscreensaver</emphasis>)</term>
1483 <para><programlisting>
1484 auth sufficient /lib/security/pam_afs.so ignore_uid 100 refresh_token
1486 #Avoid generating a new PAG for the new tokens, use the already existing PAG and
1487 #establish a fresh token in it.
1488 auth required /lib/security/pam_pwdb.so try_first_pass
1489 </programlisting></para>
1494 <term>(<emphasis role="bold">/etc/pam.d/httpd</emphasis>)</term>
1497 <para><programlisting>
1498 auth required /lib/security/pam_afs.so ignore_uid 100 dont_fork
1500 #Don't fork for the verification of the password.
1501 </programlisting></para>
1504 </variablelist> <variablelist>
1505 <title>Session Management</title>
1508 <term>(<emphasis role="bold">/etc/pam.d/su</emphasis>)</term>
1511 <para><programlisting>
1512 auth sufficient /lib/security/pam_afs.so ignore_uid 100
1513 auth required /lib/security/pam_pwdb.so try_first_pass
1514 account required /lib/security/pam_pwdb.so
1515 password required /lib/security/pam_cracklib.so
1516 password required /lib/security/pam_pwdb.so use_authtok
1517 session required /lib/security/pam_pwdb.so
1518 session optional /lib/security/pam_afs.so no_unlog
1520 #Don't delete the token in this case, since the user may still
1521 #need it (for example if somebody logs in and changes to root
1522 #afterwards he may still want to access his home space in AFS).
1523 session required /lib/security/pam_login_access.so
1524 session optional /lib/security/pam_xauth.so
1525 </programlisting></para>
1530 <term>(<emphasis role="bold">/etc/pam.d/xdm</emphasis>)</term>
1533 <para><programlisting>
1534 auth required /lib/security/pam_nologin.so
1535 auth required /lib/security/pam_login_access.so
1536 auth sufficient /lib/security/pam_afs.so ignore_uid 100 use_klog
1537 auth required /lib/security/pam_pwdb.so try_first_pass
1538 account required /lib/security/pam_pwdb.so
1539 password required /lib/security/pam_cracklib.so
1540 password required /lib/security/pam_pwdb.so shadow nullok use_authtok
1541 session optional /lib/security/pam_afs.so remainlifetime 10
1543 #Wait 10 seconds before deleting the AFS tokens in order to give
1544 #the programs of the X session some time to save their settings
1546 session required /lib/security/pam_pwdb.so
1547 </programlisting></para>
1550 </variablelist></para>
1554 <para>Proceed to <link linkend="HDRWQ145">Loading and Creating Client Files</link>.</para>
1556 </orderedlist></para>
1559 <primary>incorporating AFS kernel extensions</primary>
1561 <secondary>client machine</secondary>
1563 <tertiary>Solaris</tertiary>
1567 <primary>AFS kernel extensions</primary>
1569 <secondary>on client machine</secondary>
1571 <tertiary>Solaris</tertiary>
1575 <primary>client machine</primary>
1577 <secondary>AFS kernel extensions</secondary>
1579 <tertiary>on Solaris</tertiary>
1583 <primary>Solaris</primary>
1585 <secondary>AFS kernel extensions</secondary>
1587 <tertiary>on client machine</tertiary>
1591 <primary>enabling AFS login</primary>
1593 <secondary>client machine</secondary>
1595 <tertiary>Solaris</tertiary>
1599 <primary>AFS login</primary>
1601 <secondary>on client machine</secondary>
1603 <tertiary>Solaris</tertiary>
1607 <primary>client machine</primary>
1609 <secondary>AFS login</secondary>
1611 <tertiary>on Solaris</tertiary>
1615 <primary>Solaris</primary>
1617 <secondary>AFS login</secondary>
1619 <tertiary>on client machine</tertiary>
1623 <primary>PAM</primary>
1625 <secondary>on Solaris</secondary>
1627 <tertiary>client machine</tertiary>
1631 <primary>Solaris</primary>
1633 <secondary>file systems clean-up script</secondary>
1635 <tertiary>on client machine</tertiary>
1639 <primary>file systems clean-up script (Solaris)</primary>
1641 <secondary>client machine</secondary>
1645 <primary>scripts</primary>
1647 <secondary>file systems clean-up (Solaris)</secondary>
1649 <tertiary>client machine</tertiary>
1654 <sect1 id="HDRWQ144">
1655 <title>Getting Started on Solaris Systems</title>
1657 <para>In this section you load AFS into the Solaris kernel. Then incorporate AFS modifications into the machine's Pluggable
1658 Authentication Module (PAM) system, if you wish to enable AFS login.</para>
1660 <sect2 id="Header_136">
1661 <title>Loading AFS into the Solaris Kernel</title>
1663 <para>The <emphasis role="bold">modload</emphasis> program is the dynamic kernel loader provided by Sun Microsystems for
1664 Solaris systems. Solaris does not support incorporation of AFS modifications during a kernel build.</para>
1666 <para>For AFS to function correctly, the <emphasis role="bold">modload</emphasis> program must run each time the machine
1667 reboots, so the AFS initialization script (included on the AFS CD-ROM) invokes it automatically. In this section you copy the
1668 appropriate AFS library file to the location where the <emphasis role="bold">modload</emphasis> program accesses it and then
1669 run the script.</para>
1671 <para>In a later section you verify that the script correctly initializes the Cache Manager, then create the links that
1672 incorporate AFS into the Solaris startup and shutdown sequence. <orderedlist>
1674 <para>Mount the AFS CD-ROM for Solaris on the <emphasis role="bold">/cdrom</emphasis> directory. For instructions on
1675 mounting CD-ROMs (either locally or remotely via NFS), see your Solaris documentation. Then change directory as
1676 indicated. <programlisting>
1677 # <emphasis role="bold">cd /cdrom/sun4x_56/root.client/usr/vice/etc</emphasis>
1678 </programlisting></para>
1682 <para>Copy the AFS initialization script to the local directory for initialization files (by convention, <emphasis
1683 role="bold">/etc/init.d</emphasis> on Solaris machines). Note the removal of the <emphasis role="bold">.rc</emphasis>
1684 extension as you copy the script. <programlisting>
1685 # <emphasis role="bold">cp -p afs.rc /etc/init.d/afs</emphasis>
1686 </programlisting></para>
1690 <para>Copy the appropriate AFS kernel library file to the local file <emphasis
1691 role="bold">/kernel/fs/afs</emphasis>.</para>
1693 <para>If the machine is running Solaris 2.6 or the 32-bit version of Solaris 7, its kernel supports NFS server
1694 functionality, and the <emphasis role="bold">nfsd</emphasis> process is running:</para>
1697 # <emphasis role="bold">cp -p modload/libafs.o /kernel/fs/afs</emphasis>
1700 <para>If the machine is running Solaris 2.6 or the 32-bit version of Solaris 7, and its kernel does not support NFS
1701 server functionality or the <emphasis role="bold">nfsd</emphasis> process is not running:</para>
1704 # <emphasis role="bold">cp -p modload/libafs.nonfs.o /kernel/fs/afs</emphasis>
1707 <para>If the machine is running the 64-bit version of Solaris 7, its kernel supports NFS server functionality, and the
1708 <emphasis role="bold">nfsd</emphasis> process is running:</para>
1711 # <emphasis role="bold">cp -p modload/libafs64.o /kernel/fs/sparcv9/afs</emphasis>
1714 <para>If the machine is running the 64-bit version of Solaris 7, and its kernel does not support NFS server
1715 functionality or the <emphasis role="bold">nfsd</emphasis> process is not running:</para>
1718 # <emphasis role="bold">cp -p modload/libafs64.nonfs.o /kernel/fs/sparcv9/afs</emphasis>
1723 <para>Run the AFS initialization script to load AFS modifications into the kernel. You can ignore any error messages
1724 about the inability to start the BOS Server or the Cache Manager or AFS client. <programlisting>
1725 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
1726 </programlisting></para>
1728 <para>When an entry called <computeroutput>afs</computeroutput> does not already exist in the local <emphasis
1729 role="bold">/etc/name_to_sysnum</emphasis> file, the script automatically creates it and reboots the machine to start
1730 using the new version of the file. If this happens, log in again as the superuser <emphasis role="bold">root</emphasis>
1731 after the reboot and run the initialization script again. This time the required entry exists in the <emphasis
1732 role="bold">/etc/name_to_sysnum</emphasis> file, and the <emphasis role="bold">modload</emphasis> program runs.</para>
1735 login: <emphasis role="bold">root</emphasis>
1736 Password: <replaceable>root_password</replaceable>
1737 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
1740 </orderedlist></para>
1743 <sect2 id="Header_137">
1744 <title>Enabling AFS Login on Solaris Systems</title>
1746 <para>At this point you incorporate AFS into the operating system's Pluggable Authentication Module (PAM) scheme. PAM
1747 integrates all authentication mechanisms on the machine, including login, to provide the security infrastructure for
1748 authenticated access to and from the machine.</para>
1750 <para>Explaining PAM is beyond the scope of this document. It is assumed that you understand the syntax and meanings of
1751 settings in the PAM configuration file (for example, how the <computeroutput>other</computeroutput> entry works, the effect of
1752 marking an entry as <computeroutput>required</computeroutput>, <computeroutput>optional</computeroutput>, or
1753 <computeroutput>sufficient</computeroutput>, and so on).</para>
1755 <para>The following instructions explain how to alter the entries in the PAM configuration file for each service for which you
1756 wish to use AFS authentication. Other configurations possibly also work, but the instructions specify the recommended and
1757 tested configuration.</para>
1760 <para>The instructions specify that you mark each entry as <computeroutput>optional</computeroutput>. However, marking some
1761 modules as optional can mean that they grant access to the corresponding service even when the user does not meet all of the
1762 module's requirements. In some operating system revisions, for example, if you mark as optional the module that controls
1763 login via a dial-up connection, it allows users to login without providing a password. See the <emphasis>OpenAFS Release
1764 Notes</emphasis> for a discussion of any limitations that apply to this operating system.</para>
1766 <para>Also, with some operating system versions you must install patches for PAM to interact correctly with certain
1767 authentication programs. For details, see the <emphasis>OpenAFS Release Notes</emphasis>.</para>
1770 <para>The recommended AFS-related entries in the PAM configuration file make use of one or more of the following three
1771 attributes. <variablelist>
1772 <title>Authentication Management</title>
1775 <term><emphasis role="bold"><computeroutput>try_first_pass</computeroutput></emphasis></term>
1778 <para>This is a standard PAM attribute that can be included on entries after the first one for a service; it directs
1779 the module to use the password that was provided to the first module. For the AFS module, it means that AFS
1780 authentication succeeds if the password provided to the module listed first is the user's correct AFS password. For
1781 further discussion of this attribute and its alternatives, see the operating system's PAM documentation.</para>
1786 <term><emphasis role="bold"><computeroutput>ignore_root</computeroutput></emphasis></term>
1789 <para>This attribute, specific to the AFS PAM module, directs it to ignore not only the local superuser <emphasis
1790 role="bold">root</emphasis>, but also any user with UID 0 (zero).</para>
1795 <term><emphasis role="bold"><computeroutput>setenv_password_expires</computeroutput></emphasis></term>
1798 <para>This attribute, specific to the AFS PAM module, sets the environment variable PASSWORD_EXPIRES to the expiration
1799 date of the user's AFS password, which is recorded in the Authentication Database.</para>
1802 </variablelist></para>
1804 <para>Perform the following steps to enable AFS login. <orderedlist>
1806 <para>Mount the AFS CD-ROM for Solaris on the <emphasis role="bold">/cdrom</emphasis> directory, if it is not already.
1807 Then change directory as indicated. <programlisting>
1808 # <emphasis role="bold">cd /usr/lib/security</emphasis>
1809 </programlisting></para>
1813 <para>Copy the AFS authentication library file to the <emphasis role="bold">/usr/lib/security</emphasis> directory. Then
1814 create a symbolic link to it whose name does not mention the version. Omitting the version eliminates the need to edit
1815 the PAM configuration file if you later update the library file.</para>
1817 <para>If you use the AFS Authentication Server (<emphasis role="bold">kaserver</emphasis> process):</para>
1820 # <emphasis role="bold">cp /cdrom/sun4x_56/lib/pam_afs.so.1 .</emphasis>
1821 # <emphasis role="bold">ln -s pam_afs.so.1 pam_afs.so</emphasis>
1824 <para>If you use a Kerberos implementation of AFS authentication:</para>
1827 # <emphasis role="bold">cp /cdrom/sun4x_56/lib/pam_afs.krb.so.1 .</emphasis>
1828 # <emphasis role="bold">ln -s pam_afs.krb.so.1 pam_afs.so</emphasis>
1833 <para>Edit the <computeroutput>Authentication management</computeroutput> section of the Solaris PAM configuration file,
1834 <emphasis role="bold">/etc/pam.conf</emphasis> by convention. The entries in this section have the value
1835 <computeroutput>auth</computeroutput> in their second field.</para>
1837 <para>First edit the standard entries, which refer to the Solaris PAM module (usually, the file <emphasis
1838 role="bold">/usr/lib/security/pam_unix.so.1</emphasis>) in their fourth field. For each service for which you want to
1839 use AFS authentication, edit the third field of its entry to read <computeroutput>optional</computeroutput>. The
1840 <emphasis role="bold">pam.conf</emphasis> file in the Solaris distribution usually includes standard entries for the
1841 <emphasis role="bold">login</emphasis>, <emphasis role="bold">rlogin</emphasis>, and <emphasis
1842 role="bold">rsh</emphasis> services, for instance.</para>
1844 <para>If there are services for which you want to use AFS authentication, but for which the <emphasis
1845 role="bold">pam.conf</emphasis> file does not already include a standard entry, you must create that entry and place the
1846 value <computeroutput>optional</computeroutput> in its third field. For instance, the Solaris <emphasis
1847 role="bold">pam.conf</emphasis> file does not usually include standard entries for the <emphasis
1848 role="bold">ftp</emphasis> or <emphasis role="bold">telnet</emphasis> services.</para>
1850 <para>Then create an AFS-related entry for each service, placing it immediately below the standard entry. The following
1851 example shows what the <computeroutput>Authentication Management</computeroutput> section looks like after you have you
1852 edited or created entries for the services mentioned previously. Note that the example AFS entries appear on two lines
1853 only for legibility.</para>
1856 login auth optional /usr/lib/security/pam_unix.so.1
1857 login auth optional /usr/lib/security/pam_afs.so \
1858 try_first_pass ignore_root setenv_password_expires
1859 rlogin auth optional /usr/lib/security/pam_unix.so.1
1860 rlogin auth optional /usr/lib/security/pam_afs.so \
1861 try_first_pass ignore_root setenv_password_expires
1862 rsh auth optional /usr/lib/security/pam_unix.so.1
1863 rsh auth optional /usr/lib/security/pam_afs.so \
1864 try_first_pass ignore_root
1865 ftp auth optional /usr/lib/security/pam_unix.so.1
1866 ftp auth optional /usr/lib/security/pam_afs.so \
1867 try_first_pass ignore_root
1868 telnet auth optional /usr/lib/security/pam_unix.so.1
1869 telnet auth optional /usr/lib/security/pam_afs.so \
1870 try_first_pass ignore_root setenv_password_expires
1875 <para>If you use the Common Desktop Environment (CDE) on the machine and want users to obtain an AFS token as they log
1876 in, also add or edit the following four entries in the <computeroutput>Authentication management</computeroutput>
1877 section. Note that the AFS-related entries appear on two lines here only for legibility. <programlisting>
1878 dtlogin auth optional /usr/lib/security/pam_unix.so.1
1879 dtlogin auth optional /usr/lib/security/pam_afs.so \
1880 try_first_pass ignore_root
1881 dtsession auth optional /usr/lib/security/pam_unix.so.1
1882 dtsession auth optional /usr/lib/security/pam_afs.so \
1883 try_first_pass ignore_root
1884 </programlisting></para>
1888 <para>Some Solaris distributions include a script that locates and removes unneeded files from various file systems. Its
1889 conventional location is <emphasis role="bold">/usr/lib/fs/nfs/nfsfind</emphasis>. The script generally uses an argument
1890 to the <emphasis role="bold">find</emphasis> command to define which file systems to search. In this step you modify the
1891 command to exclude the <emphasis role="bold">/afs</emphasis> directory. Otherwise, the command traverses the AFS
1892 filespace of every cell that is accessible from the machine, which can take many hours. The following alterations are
1893 possibilities, but you must verify that they are appropriate for your cell.</para>
1895 <para>The first possible alteration is to add the <emphasis role="bold">-local</emphasis> flag to the existing command,
1896 so that it looks like the following:</para>
1899 find $dir -local -name .nfs\* -mtime +7 -mount -exec rm -f {} \;
1902 <para>Another alternative is to exclude any directories whose names begin with the lowercase letter <emphasis
1903 role="bold">a</emphasis> or a non-alphabetic character.</para>
1906 find /[A-Zb-z]* <replaceable>remainder of existing command</replaceable>
1909 <para>Do not use the following command, which still searches under the <emphasis role="bold">/afs</emphasis> directory,
1910 looking for a subdirectory of type <emphasis role="bold">4.2</emphasis>.</para>
1913 find / -fstype 4.2 /* <replaceable>do not use</replaceable> */
1918 <para>Proceed to <link linkend="HDRWQ145">Loading and Creating Client Files</link>.</para>
1920 </orderedlist></para>
1923 <primary>CD-ROM</primary>
1925 <secondary>copying client files from</secondary>
1927 <tertiary>client machine</tertiary>
1931 <primary>client machine</primary>
1933 <secondary>copying client files to local disk</secondary>
1937 <primary>copying</primary>
1939 <secondary>client files to local disk</secondary>
1941 <tertiary>client machine</tertiary>
1945 <primary>cell name</primary>
1947 <secondary>setting in client ThisCell file</secondary>
1949 <tertiary>client machine</tertiary>
1953 <primary>setting</primary>
1955 <secondary>cell name in client ThisCell file</secondary>
1957 <tertiary>client machine</tertiary>
1961 <primary>client machine</primary>
1963 <secondary>cell membership</secondary>
1967 <primary>client machine</primary>
1969 <secondary>ThisCell file</secondary>
1973 <primary>ThisCell file (client)</primary>
1975 <secondary>client machine</secondary>
1979 <primary>CellServDB file (client)</primary>
1981 <secondary>creating</secondary>
1983 <tertiary>on client machine</tertiary>
1987 <primary>database server machine</primary>
1989 <secondary>entry in client CellServDB file</secondary>
1991 <tertiary>on client machine</tertiary>
1995 <primary>creating</primary>
1997 <secondary>CellServDB file (client)</secondary>
1999 <tertiary>client machine</tertiary>
2003 <primary>client machine</primary>
2005 <secondary>CellServDB file</secondary>
2007 <tertiary>creating during initial installation</tertiary>
2012 <sect1 id="HDRWQ145">
2013 <title>Loading and Creating Client Files</title>
2015 <para>Now copy files from the AFS CD-ROM to the <emphasis role="bold">/usr/vice/etc</emphasis> directory. On some platforms that
2016 use a dynamic loader program to incorporate AFS modifications into the kernel, you have already copied over some the files.
2017 Copying them again does no harm.</para>
2019 <para>Every AFS client machine has a copy of the <emphasis role="bold">/usr/vice/etc/ThisCell</emphasis> file on its local disk
2020 to define the machine's cell membership for the AFS client programs that run on it. Among other functions, this file determines
2021 the following: <itemizedlist>
2023 <para>The cell in which users authenticate when they log onto the machine, assuming it is using an AFS-modified login
2028 <para>The cell in which users authenticate by default when they issue the <emphasis role="bold">klog</emphasis>
2033 <para>The cell membership of the AFS server processes that the AFS command interpreters on this machine contact by
2036 </itemizedlist></para>
2038 <para>Similarly, the <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file on a client machine's local disk lists the
2039 database server machines in each cell that the local Cache Manager can contact. If there is no entry in the file for a cell, or
2040 the list of database server machines is wrong, then users working on this machine cannot access the cell. The chapter in the
2041 <emphasis>OpenAFS Administration Guide</emphasis> about administering client machines explains how to maintain the file after
2042 creating it. A version of the client <emphasis role="bold">CellServDB</emphasis> file was created during the installation of
2043 your cell's first machine (in <link linkend="HDRWQ66">Creating the Client CellServDB File</link>). It is probably also
2044 appropriate for use on this machine.</para>
2046 <para>Remember that the Cache Manager consults the <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file only at
2047 reboot, when it copies the information into the kernel. For the Cache Manager to perform properly, the <emphasis
2048 role="bold">CellServDB</emphasis> file must be accurate at all times. Refer to the chapter in the <emphasis>OpenAFS
2049 Administration Guide</emphasis> about administering client machines for instructions on updating this file, with or without
2050 rebooting. <orderedlist>
2052 <para>On the local <emphasis role="bold">/cdrom</emphasis> directory, mount the AFS CD-ROM for this machine's system type,
2053 if it is not already. For instructions on mounting CD-ROMs (either locally or remotely via NFS), consult the operating
2054 system documentation.</para>
2058 <para>Copy files to the local <emphasis role="bold">/usr/vice/etc</emphasis> directory.</para>
2060 <para>This step places a copy of the AFS initialization script (and related files, if applicable) into the <emphasis
2061 role="bold">/usr/vice/etc</emphasis> directory. In the preceding instructions for incorporating AFS into the kernel, you
2062 copied the script directly to the operating system's conventional location for initialization files. When you incorporate
2063 AFS into the machine's startup sequence in a later step, you can choose to link the two files.</para>
2065 <para>On some system types that use a dynamic kernel loader program, you previously copied AFS library files into a
2066 subdirectory of the <emphasis role="bold">/usr/vice/etc</emphasis> directory. On other system types, you copied the
2067 appropriate AFS library file directly to the directory where the operating system accesses it. The following commands do
2068 not copy or recopy the AFS library files into the <emphasis role="bold">/usr/vice/etc</emphasis> directory, because on
2069 some system types the library files consume a large amount of space. If you want to copy them, add the <emphasis
2070 role="bold">-r</emphasis> flag to the first <emphasis role="bold">cp</emphasis> command and skip the second <emphasis
2071 role="bold">cp</emphasis> command.</para>
2074 # <emphasis role="bold">cd /cdrom/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/root.client/usr/vice/etc</emphasis>
2075 # <emphasis role="bold">cp -p * /usr/vice/etc</emphasis>
2076 # <emphasis role="bold">cp -rp C /usr/vice/etc</emphasis>
2081 <para>Create the <emphasis role="bold">/usr/vice/etc/ThisCell</emphasis> file. <programlisting>
2082 # <emphasis role="bold">echo "</emphasis><replaceable>cellname</replaceable><emphasis role="bold">" > /usr/vice/etc/ThisCell</emphasis>
2083 </programlisting></para>
2087 <para>Create the <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file. Use a network file transfer program such
2088 as <emphasis role="bold">ftp</emphasis> or NFS to copy it from one of the following sources, which are listed in
2089 decreasing order of preference: <itemizedlist>
2091 <para>Your cell's central <emphasis role="bold">CellServDB</emphasis> source file (the conventional location is
2092 <emphasis role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
2093 role="bold">/common/etc/CellServDB</emphasis>)</para>
2097 <para>The global <emphasis role="bold">CellServDB</emphasis> file maintained by the AFS Product Support group</para>
2101 <para>An existing client machine in your cell</para>
2105 <para>The <emphasis role="bold">CellServDB.sample</emphasis> file included in the
2106 <replaceable>sysname</replaceable><emphasis role="bold">/root.client/usr/vice/etc</emphasis> directory of each AFS
2107 CD-ROM; add an entry for the local cell by following the instructions in <link linkend="HDRWQ66">Creating the Client
2108 CellServDB File</link></para>
2110 </itemizedlist></para>
2112 </orderedlist></para>
2115 <primary>client cache</primary>
2121 <primary>AFS cache</primary>
2127 <primary>disk cache</primary>
2133 <primary>memory cache</primary>
2139 <primary>cache</primary>
2141 <secondary>requirements</secondary>
2145 <primary>cache</primary>
2147 <secondary>choosing size</secondary>
2151 <primary>requirements</primary>
2153 <secondary>cache</secondary>
2157 <primary>usr/vice/etc/cacheinfo</primary>
2159 <see>cacheinfo file</see>
2163 <primary>cacheinfo file</primary>
2167 <primary>files</primary>
2169 <secondary>cacheinfo</secondary>
2173 <primary>usr/vice/cache directory</primary>
2177 <primary>directories</primary>
2179 <secondary>/usr/vice/cache</secondary>
2183 <primary>cache</primary>
2185 <secondary>configuring</secondary>
2187 <tertiary>client machine</tertiary>
2191 <primary>configuring</primary>
2193 <secondary>cache</secondary>
2195 <tertiary>client machine</tertiary>
2199 <primary>setting</primary>
2201 <secondary>cache size and location</secondary>
2203 <tertiary>client machine</tertiary>
2207 <primary>client machine</primary>
2209 <secondary>cache size and location</secondary>
2213 <sect1 id="HDRWQ146">
2214 <title>Configuring the Cache</title>
2216 <para>The Cache Manager uses a cache on the local disk or in machine memory to store local copies of files fetched from file
2217 server machines. As the <emphasis role="bold">afsd</emphasis> program initializes the Cache Manager, it sets basic cache
2218 configuration parameters according to definitions in the local <emphasis role="bold">/usr/vice/etc/cacheinfo</emphasis> file.
2219 The file has three fields: <orderedlist>
2221 <para>The first field names the local directory on which to mount the AFS filespace. The conventional location is the
2222 <emphasis role="bold">/afs</emphasis> directory.</para>
2226 <para>The second field defines the local disk directory to use for the disk cache. The conventional location is the
2227 <emphasis role="bold">/usr/vice/cache</emphasis> directory, but you can specify an alternate directory if another
2228 partition has more space available. There must always be a value in this field, but the Cache Manager ignores it if the
2229 machine uses a memory cache.</para>
2233 <para>The third field specifies the number of kilobyte (1024 byte) blocks to allocate for the cache.</para>
2235 </orderedlist></para>
2237 <para>The values you define must meet the following requirements. <itemizedlist>
2239 <para>On a machine using a disk cache, the Cache Manager expects always to be able to use the amount of space specified in
2240 the third field. Failure to meet this requirement can cause serious problems, some of which can be repaired only by
2241 rebooting. You must prevent non-AFS processes from filling up the cache partition. The simplest way is to devote a
2242 partition to the cache exclusively.</para>
2246 <para>The amount of space available in memory or on the partition housing the disk cache directory imposes an absolute
2247 limit on cache size.</para>
2251 <para>The maximum supported cache size can vary in each AFS release; see the <emphasis>OpenAFS Release Notes</emphasis>
2252 for the current version.</para>
2256 <para>For a disk cache, you cannot specify a value in the third field that exceeds 95% of the space available on the
2257 partition mounted at the directory named in the second field. If you violate this restriction, the <emphasis
2258 role="bold">afsd</emphasis> program exits without starting the Cache Manager and prints an appropriate message on the
2259 standard output stream. A value of 90% is more appropriate on most machines. Some operating systems (such as AIX) do not
2260 automatically reserve some space to prevent the partition from filling completely; for them, a smaller value (say, 80% to
2261 85% of the space available) is more appropriate.</para>
2265 <para>For a memory cache, you must leave enough memory for other processes and applications to run. If you try to allocate
2266 more memory than is actually available, the <emphasis role="bold">afsd</emphasis> program exits without initializing the
2267 Cache Manager and produces the following message on the standard output stream. <programlisting>
2268 afsd: memCache allocation failure at <replaceable>number</replaceable> KB
2269 </programlisting></para>
2271 <para>The <replaceable>number</replaceable> value is how many kilobytes were allocated just before the failure, and so
2272 indicates the approximate amount of memory available.</para>
2274 </itemizedlist></para>
2276 <para>Within these hard limits, the factors that determine appropriate cache size include the number of users working on the
2277 machine, the size of the files with which they work, and (for a memory cache) the number of processes that run on the machine.
2278 The higher the demand from these factors, the larger the cache needs to be to maintain good performance.</para>
2280 <para>Disk caches smaller than 10 MB do not generally perform well. Machines serving multiple users usually perform better with
2281 a cache of at least 60 to 70 MB. The point at which enlarging the cache further does not really improve performance depends on
2282 the factors mentioned previously and is difficult to predict.</para>
2284 <para>Memory caches smaller than 1 MB are nonfunctional, and the performance of caches smaller than 5 MB is usually
2285 unsatisfactory. Suitable upper limits are similar to those for disk caches but are probably determined more by the demands on
2286 memory from other sources on the machine (number of users and processes). Machines running only a few processes possibly can use
2287 a smaller memory cache.</para>
2289 <sect2 id="HDRWQ147">
2290 <title>Configuring a Disk Cache</title>
2293 <para>Not all file system types that an operating system supports are necessarily supported for use as the cache partition.
2294 For possible restrictions, see the <emphasis>OpenAFS Release Notes</emphasis>.</para>
2297 <para>To configure the disk cache, perform the following procedures: <orderedlist>
2299 <para>Create the local directory to use for caching. The following instruction shows the conventional location,
2300 <emphasis role="bold">/usr/vice/cache</emphasis>. If you are devoting a partition exclusively to caching, as
2301 recommended, you must also configure it, make a file system on it, and mount it at the directory created in this step.
2303 # <emphasis role="bold">mkdir /usr/vice/cache</emphasis>
2304 </programlisting></para>
2308 <para>Create the <emphasis role="bold">cacheinfo</emphasis> file to define the configuration parameters discussed
2309 previously. The following instruction shows the standard mount location, <emphasis role="bold">/afs</emphasis>, and the
2310 standard cache location, <emphasis role="bold">/usr/vice/cache</emphasis>. <programlisting>
2311 # <emphasis role="bold">echo "/afs:/usr/vice/cache:</emphasis><replaceable>#blocks</replaceable><emphasis role="bold">" > /usr/vice/etc/cacheinfo</emphasis>
2312 </programlisting></para>
2314 <para>The following example defines the disk cache size as 50,000 KB:</para>
2317 # <emphasis role="bold">echo "/afs:/usr/vice/cache:50000" > /usr/vice/etc/cacheinfo</emphasis>
2320 </orderedlist></para>
2323 <sect2 id="HDRWQ148">
2324 <title>Configuring a Memory Cache</title>
2326 <para>To configure a memory cache, create the <emphasis role="bold">cacheinfo</emphasis> file to define the configuration
2327 parameters discussed previously. The following instruction shows the standard mount location, <emphasis
2328 role="bold">/afs</emphasis>, and the standard cache location, <emphasis role="bold">/usr/vice/cache</emphasis> (though the
2329 exact value of the latter is irrelevant for a memory cache).</para>
2332 # <emphasis role="bold">echo "/afs:/usr/vice/cache:</emphasis><replaceable>#blocks</replaceable><emphasis role="bold">" > /usr/vice/etc/cacheinfo</emphasis>
2335 <para>The following example allocates 25,000 KB of memory for the cache.</para>
2338 # <emphasis role="bold">echo "/afs:/usr/vice/cache:25000" > /usr/vice/etc/cacheinfo</emphasis>
2342 <primary>afs (/afs) directory</primary>
2344 <secondary>creating</secondary>
2346 <tertiary>client machine</tertiary>
2350 <primary>afs (/afs) directory</primary>
2352 <secondary>as root of AFS filespace</secondary>
2356 <primary>AFS filespace</primary>
2358 <secondary>root at /afs directory</secondary>
2362 <primary>directories</primary>
2364 <secondary>/afs</secondary>
2368 <primary>afsd</primary>
2370 <secondary>options file (Linux)</secondary>
2374 <primary>files</primary>
2376 <secondary>afsd options file (Linux)</secondary>
2380 <primary>files</primary>
2382 <secondary>afs</secondary>
2384 <tertiary>afsd options file (Linux)</tertiary>
2388 <primary>afs file</primary>
2390 <secondary>afsd options file (Linux)</secondary>
2394 <primary>etc/sysconfig/afs</primary>
2400 <primary>Linux</primary>
2402 <secondary>afsd options file</secondary>
2406 <primary>client machine</primary>
2408 <secondary>afsd options file (Linux)</secondary>
2412 <primary>afsd</primary>
2414 <secondary>command in AFS init. script</secondary>
2418 <primary>commands</primary>
2420 <secondary>afsd</secondary>
2424 <primary>OPTIONS variable in AFS initialization file</primary>
2428 <primary>files</primary>
2430 <secondary>AFS initialization</secondary>
2432 <see>AFS initialization script</see>
2436 <primary>scripts</primary>
2438 <secondary>AFS initialization</secondary>
2440 <see>AFS initialization script</see>
2444 <primary>AFS initialization script</primary>
2446 <secondary>setting afsd parameters</secondary>
2448 <tertiary>client machine</tertiary>
2452 <primary>client machine</primary>
2454 <secondary>afsd command parameters</secondary>
2458 <primary>variables</primary>
2460 <secondary>OPTIONS (in AFS initialization file)</secondary>
2464 <primary>environment variables</primary>
2466 <see>variables</see>
2470 <primary>Cache Manager</primary>
2472 <secondary>client machine</secondary>
2476 <primary>configuring</primary>
2478 <secondary>Cache Manager</secondary>
2480 <tertiary>client machine</tertiary>
2484 <primary>client machine</primary>
2486 <secondary>Cache Manager</secondary>
2490 <primary>files</primary>
2492 <secondary>vfs (AIX)</secondary>
2496 <primary>vfs file</primary>
2500 <primary>etc/vfs file</primary>
2504 <primary>AIX</primary>
2506 <secondary>editing /etc/vfs file</secondary>
2510 <primary>client machine</primary>
2512 <secondary>vfs file (AIX)</secondary>
2517 <sect1 id="HDRWQ149">
2518 <title>Configuring the Cache Manager</title>
2520 <para>By convention, the Cache Manager mounts the AFS filespace on the local <emphasis role="bold">/afs</emphasis> directory. In
2521 this section you create that directory.</para>
2523 <para>The <emphasis role="bold">afsd</emphasis> program sets several cache configuration parameters as it initializes the Cache
2524 Manager, and starts daemons that improve performance. You can use the <emphasis role="bold">afsd</emphasis> command's arguments
2525 to override the parameters' default values and to change the number of some of the daemons. Depending on the machine's cache
2526 size, its amount of RAM, and how many people work on it, you can sometimes improve Cache Manager performance by overriding the
2527 default values. For a discussion of all of the <emphasis role="bold">afsd</emphasis> command's arguments, see its reference page
2528 in the <emphasis>OpenAFS Administration Reference</emphasis>.</para>
2530 <para>The <emphasis role="bold">afsd</emphasis> command line in the AFS initialization script on each system type includes an
2531 <computeroutput>OPTIONS</computeroutput> variable. You can use it to set nondefault values for the command's arguments, in one
2532 of the following ways: <itemizedlist>
2534 <para>You can create an <emphasis role="bold">afsd</emphasis> <emphasis>options file</emphasis> that sets values for
2535 arguments to the <emphasis role="bold">afsd</emphasis> command. If the file exists, its contents are automatically
2536 substituted for the <computeroutput>OPTIONS</computeroutput> variable in the AFS initialization script. The AFS
2537 distribution for some system types includes an options file; on other system types, you must create it.</para>
2539 <para>You use two variables in the AFS initialization script to specify the path to the options file:
2540 <computeroutput>CONFIG</computeroutput> and <computeroutput>AFSDOPT</computeroutput>. On system types that define a
2541 conventional directory for configuration files, the <computeroutput>CONFIG</computeroutput> variable indicates it by
2542 default; otherwise, the variable indicates an appropriate location.</para>
2544 <para>List the desired <emphasis role="bold">afsd</emphasis> options on a single line in the options file, separating each
2545 option with one or more spaces. The following example sets the <emphasis role="bold">-stat</emphasis> argument to 2500,
2546 the <emphasis role="bold">-daemons</emphasis> argument to 4, and the <emphasis role="bold">-volumes</emphasis> argument to
2550 -stat 2500 -daemons 4 -volumes 100
2555 <para>On a machine that uses a disk cache, you can set the <computeroutput>OPTIONS</computeroutput> variable in the AFS
2556 initialization script to one of <computeroutput>$SMALL</computeroutput>, <computeroutput>$MEDIUM</computeroutput>, or
2557 <computeroutput>$LARGE</computeroutput>. The AFS initialization script uses one of these settings if the <emphasis
2558 role="bold">afsd</emphasis> options file named by the <computeroutput>AFSDOPT</computeroutput> variable does not exist. In
2559 the script as distributed, the <computeroutput>OPTIONS</computeroutput> variable is set to the value
2560 <computeroutput>$MEDIUM</computeroutput>.</para>
2563 <para>Do not set the <computeroutput>OPTIONS</computeroutput> variable to <computeroutput>$SMALL</computeroutput>,
2564 <computeroutput>$MEDIUM</computeroutput>, or <computeroutput>$LARGE</computeroutput> on a machine that uses a memory
2565 cache. The arguments it sets are appropriate only on a machine that uses a disk cache.</para>
2568 <para>The script (or on some system types the <emphasis role="bold">afsd</emphasis> options file named by the
2569 <computeroutput>AFSDOPT</computeroutput> variable) defines a value for each of <computeroutput>SMALL</computeroutput>,
2570 <computeroutput>MEDIUM</computeroutput>, and <computeroutput>LARGE</computeroutput> that sets <emphasis
2571 role="bold">afsd</emphasis> command arguments appropriately for client machines of different sizes: <itemizedlist>
2573 <para><computeroutput>SMALL</computeroutput> is suitable for a small machine that serves one or two users and has
2574 approximately 8 MB of RAM and a 20-MB cache</para>
2578 <para><computeroutput>MEDIUM</computeroutput> is suitable for a medium-sized machine that serves two to six users
2579 and has 16 MB of RAM and a 40-MB cache</para>
2583 <para><computeroutput>LARGE</computeroutput> is suitable for a large machine that serves five to ten users and has
2584 32 MB of RAM and a 100-MB cache</para>
2586 </itemizedlist></para>
2590 <para>You can choose not to create an <emphasis role="bold">afsd</emphasis> options file and to set the
2591 <computeroutput>OPTIONS</computeroutput> variable in the initialization script to a null value rather than to the default
2592 <computeroutput>$MEDIUM</computeroutput> value. You can then either set arguments directly on the <emphasis
2593 role="bold">afsd</emphasis> command line in the script, or set no arguments (and so accept default values for all Cache
2594 Manager parameters).</para>
2596 </itemizedlist> <orderedlist>
2598 <para>Create the local directory on which to mount the AFS filespace, by convention <emphasis role="bold">/afs</emphasis>.
2599 If the directory already exists, verify that it is empty. <programlisting>
2600 # <emphasis role="bold">mkdir /afs</emphasis>
2601 </programlisting></para>
2605 <para>On AIX systems, add the following line to the <emphasis role="bold">/etc/vfs</emphasis> file. It enables AIX to
2606 unmount AFS correctly during shutdown. <programlisting>
2608 </programlisting></para>
2612 <para>On Linux systems, copy the <emphasis role="bold">afsd</emphasis> options file from the <emphasis
2613 role="bold">/usr/vice/etc</emphasis> directory to the <emphasis role="bold">/etc/sysconfig</emphasis> directory, removing
2614 the <emphasis role="bold">.conf</emphasis> extension as you do so. <programlisting>
2615 # <emphasis role="bold">cp /usr/vice/etc/afs.conf /etc/sysconfig/afs</emphasis>
2616 </programlisting></para>
2620 <para>Edit the machine's AFS initialization script or <emphasis role="bold">afsd</emphasis> options file to set
2621 appropriate values for <emphasis role="bold">afsd</emphasis> command parameters. The appropriate file for each system type
2622 is as follows: <itemizedlist>
2624 <para>On AIX systems, <emphasis role="bold">/etc/rc.afs</emphasis></para>
2628 <para>On HP-UX systems, <emphasis role="bold">/sbin/init.d/afs</emphasis></para>
2632 <para>On IRIX systems, <emphasis role="bold">/etc/init.d/afs</emphasis></para>
2636 <para>On Linux systems, <emphasis role="bold">/etc/sysconfig/afs</emphasis> (the <emphasis
2637 role="bold">afsd</emphasis> options file)</para>
2641 <para>On Solaris systems, <emphasis role="bold">/etc/init.d/afs</emphasis></para>
2643 </itemizedlist></para>
2645 <para>Use one of the methods described in the introduction to this section to add the following flags to the <emphasis
2646 role="bold">afsd</emphasis> command line. Also set any performance-related arguments you wish. <itemizedlist>
2648 <para>Add the <emphasis role="bold">-memcache</emphasis> flag if the machine is to use a memory cache.</para>
2652 <para>Add the <emphasis role="bold">-verbose</emphasis> flag to display a trace of the Cache Manager's
2653 initialization on the standard output stream.</para>
2655 </itemizedlist></para>
2657 </orderedlist></para>
2660 <primary>AFS initialization script</primary>
2662 <secondary>running</secondary>
2664 <tertiary>client machine</tertiary>
2668 <primary>client machine</primary>
2670 <secondary>AFS initialization script</secondary>
2674 <primary>running AFS init. script</primary>
2676 <secondary>client machine</secondary>
2680 <primary>installing</primary>
2682 <secondary>AFS initialization script</secondary>
2684 <tertiary>client machine</tertiary>
2688 <primary>AFS initialization script</primary>
2690 <secondary>adding to machine startup sequence</secondary>
2692 <tertiary>client machine</tertiary>
2696 <sect1 id="HDRWQ150">
2697 <title>Starting the Cache Manager and Installing the AFS Initialization Script</title>
2699 <para>In this section you run the AFS initialization script to start the Cache Manager. If the script works correctly, perform
2700 the steps that incorporate it into the machine's startup and shutdown sequence. If there are problems during the initialization,
2701 attempt to resolve them. The AFS Product Support group can provide assistance if necessary.</para>
2703 <para>On machines that use a disk cache, it can take a while for the <emphasis role="bold">afsd</emphasis> program to run the
2704 first time on a machine, because it must create all of the <emphasis role="bold">V</emphasis><replaceable>n</replaceable> files
2705 in the cache directory. Subsequent Cache Manager initializations do not take nearly as long, because the <emphasis
2706 role="bold">V</emphasis><replaceable>n</replaceable> files already exist.</para>
2708 <para>On system types that use a dynamic loader program, you must reboot the machine before running the initialization script,
2709 so that it can freshly load AFS modifications into the kernel.</para>
2711 <para>Proceed to the instructions for your system type:</para>
2715 <para><link linkend="HDRWQ151">Running the Script on AIX Systems</link></para>
2719 <para><link linkend="HDRWQ153">Running the Script on HP-UX Systems</link></para>
2723 <para><link linkend="HDRWQ154">Running the Script on IRIX Systems</link></para>
2727 <para><link linkend="HDRWQ155">Running the Script on Linux Systems</link></para>
2731 <para><link linkend="HDRWQ156">Running the Script on Solaris Systems</link></para>
2736 <primary>AIX</primary>
2738 <secondary>AFS initialization script</secondary>
2740 <tertiary>on client machine</tertiary>
2744 <primary>rc.afs file (AFS init. file for AIX)</primary>
2748 <primary>files</primary>
2750 <secondary>rc.afs</secondary>
2754 <primary>etc/rc.afs</primary>
2756 <see>rc.afs file</see>
2759 <sect2 id="HDRWQ151">
2760 <title>Running the Script on AIX Systems</title>
2764 <para>Reboot the machine and log in again as the local superuser <emphasis role="bold">root</emphasis>. <programlisting>
2765 # <emphasis role="bold">cd /</emphasis>
2766 # <emphasis role="bold">shutdown -r now</emphasis>
2767 login: <emphasis role="bold">root</emphasis>
2768 Password: <replaceable>root_password</replaceable>
2769 </programlisting></para>
2773 <para>Run the AFS initialization script. <programlisting>
2774 # <emphasis role="bold">/etc/rc.afs</emphasis>
2775 </programlisting></para>
2779 <para>Edit the AIX initialization file, <emphasis role="bold">/etc/inittab</emphasis>, adding the following line to invoke
2780 the AFS initialization script. Place it just after the line that starts NFS daemons. <programlisting>
2781 rcafs:2:wait:/etc/rc.afs > /dev/console 2>&1 # Start AFS services
2782 </programlisting></para>
2786 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
2787 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc</emphasis> directories. If you want to avoid
2788 potential confusion by guaranteeing that they are always the same, create a link between them. You can always retrieve the
2789 original script from the AFS CD-ROM if necessary. <programlisting>
2790 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
2791 # <emphasis role="bold">rm rc.afs</emphasis>
2792 # <emphasis role="bold">ln -s /etc/rc.afs</emphasis>
2793 </programlisting></para>
2797 <para>If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to <link
2798 linkend="HDRWQ157">Setting Up Volumes and Loading Binaries into AFS</link>. Otherwise, the installation is
2804 <primary>afs file</primary>
2806 <secondary>AFS initialization file</secondary>
2810 <primary>files</primary>
2812 <secondary>afs</secondary>
2814 <tertiary>AFS initialization file</tertiary>
2818 <primary>HP-UX</primary>
2820 <secondary>AFS initialization script</secondary>
2822 <tertiary>on client machine</tertiary>
2826 <sect2 id="HDRWQ153">
2827 <title>Running the Script on HP-UX Systems</title>
2831 <para>Run the AFS initialization script. <programlisting>
2832 # <emphasis role="bold">/sbin/init.d/afs start</emphasis>
2833 </programlisting></para>
2837 <para>Change to the <emphasis role="bold">/sbin/init.d</emphasis> directory and issue the <emphasis role="bold">ln
2838 -s</emphasis> command to create symbolic links that incorporate the AFS initialization script into the HP-UX startup and
2839 shutdown sequence. <programlisting>
2840 # <emphasis role="bold">cd /sbin/init.d</emphasis>
2841 # <emphasis role="bold">ln -s ../init.d/afs /sbin/rc2.d/S460afs</emphasis>
2842 # <emphasis role="bold">ln -s ../init.d/afs /sbin/rc2.d/K800afs</emphasis>
2843 </programlisting></para>
2847 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
2848 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/sbin/init.d</emphasis> directories. If you want
2849 to avoid potential confusion by guaranteeing that they are always the same, create a link between them. You can always
2850 retrieve the original script from the AFS CD-ROM if necessary. <programlisting>
2851 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
2852 # <emphasis role="bold">rm afs.rc</emphasis>
2853 # <emphasis role="bold">ln -s /sbin/init.d/afs afs.rc</emphasis>
2854 </programlisting></para>
2858 <para>If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to <link
2859 linkend="HDRWQ157">Setting Up Volumes and Loading Binaries into AFS</link>. Otherwise, the installation is
2865 <primary>afs file</primary>
2867 <secondary>AFS initialization file</secondary>
2871 <primary>files</primary>
2873 <secondary>afs</secondary>
2875 <tertiary>AFS initialization file</tertiary>
2879 <primary>IRIX</primary>
2881 <secondary>AFS initialization script</secondary>
2883 <tertiary>on client machine</tertiary>
2887 <primary>etc/init.d/afs</primary>
2893 <primary>afsclient variable (IRIX)</primary>
2895 <secondary>client machine</secondary>
2899 <primary>variables</primary>
2901 <secondary>afsclient (IRIX)</secondary>
2903 <tertiary>client machine</tertiary>
2907 <primary>IRIX</primary>
2909 <secondary>afsclient variable</secondary>
2911 <tertiary>client machine</tertiary>
2915 <sect2 id="HDRWQ154">
2916 <title>Running the Script on IRIX Systems</title>
2920 <para>If you have configured the machine to use the <emphasis role="bold">ml</emphasis> dynamic loader program, reboot the
2921 machine and log in again as the local superuser <emphasis role="bold">root</emphasis>. <programlisting>
2922 # <emphasis role="bold">cd /</emphasis>
2923 # <emphasis role="bold">shutdown -i6 -g0 -y</emphasis>
2924 login: <emphasis role="bold">root</emphasis>
2925 Password: <replaceable>root_password</replaceable>
2926 </programlisting></para>
2930 <para>Issue the <emphasis role="bold">chkconfig</emphasis> command to activate the <emphasis
2931 role="bold">afsclient</emphasis> configuration variable. <programlisting>
2932 # <emphasis role="bold">/etc/chkconfig -f afsclient on</emphasis>
2933 </programlisting></para>
2937 <para>Run the AFS initialization script. <programlisting>
2938 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
2939 </programlisting></para>
2943 <para>Change to the <emphasis role="bold">/etc/init.d</emphasis> directory and issue the <emphasis role="bold">ln
2944 -s</emphasis> command to create symbolic links that incorporate the AFS initialization script into the IRIX startup and
2945 shutdown sequence. <programlisting>
2946 # <emphasis role="bold">cd /etc/init.d</emphasis>
2947 # <emphasis role="bold">ln -s ../init.d/afs /etc/rc2.d/S35afs</emphasis>
2948 # <emphasis role="bold">ln -s ../init.d/afs /etc/rc0.d/K35afs</emphasis>
2949 </programlisting></para>
2953 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
2954 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc/init.d</emphasis> directories. If you want
2955 to avoid potential confusion by guaranteeing that they are always the same, create a link between them. You can always
2956 retrieve the original script from the AFS CD-ROM if necessary. <programlisting>
2957 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
2958 # <emphasis role="bold">rm afs.rc</emphasis>
2959 # <emphasis role="bold">ln -s /etc/init.d/afs afs.rc</emphasis>
2960 </programlisting></para>
2964 <para>If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to <link
2965 linkend="HDRWQ157">Setting Up Volumes and Loading Binaries into AFS</link>. Otherwise, the installation is
2971 <primary>afs file</primary>
2973 <secondary>AFS initialization file</secondary>
2977 <primary>files</primary>
2979 <secondary>afs</secondary>
2981 <tertiary>AFS initialization file</tertiary>
2985 <primary>etc/rc.d/init.d/afs</primary>
2991 <primary>Linux</primary>
2993 <secondary>AFS initialization script</secondary>
2995 <tertiary>on client machine</tertiary>
2999 <sect2 id="HDRWQ155">
3000 <title>Running the Script on Linux Systems</title>
3004 <para>Reboot the machine and log in again as the local superuser <emphasis role="bold">root</emphasis>. <programlisting>
3005 # <emphasis role="bold">cd /</emphasis>
3006 # <emphasis role="bold">shutdown -r now</emphasis>
3007 login: <emphasis role="bold">root</emphasis>
3008 Password: <replaceable>root_password</replaceable>
3009 </programlisting></para>
3013 <para>Run the AFS initialization script. <programlisting>
3014 # <emphasis role="bold">/etc/rc.d/init.d/afs start</emphasis>
3015 </programlisting></para>
3019 <para>Issue the <emphasis role="bold">chkconfig</emphasis> command to activate the <emphasis role="bold">afs</emphasis>
3020 configuration variable. Based on the instruction in the AFS initialization file that begins with the string
3021 <computeroutput>#chkconfig</computeroutput>, the command automatically creates the symbolic links that incorporate the
3022 script into the Linux startup and shutdown sequence. <programlisting>
3023 # <emphasis role="bold">/sbin/chkconfig --add afs</emphasis>
3024 </programlisting></para>
3028 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
3029 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc/rc.d/init.d</emphasis> directories, and
3030 copies of the <emphasis role="bold">afsd</emphasis> options file in both the <emphasis
3031 role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc/sysconfig</emphasis> directories. If you want to avoid
3032 potential confusion by guaranteeing that the two copies of each file are always the same, create a link between them. You
3033 can always retrieve the original script or options file from the AFS CD-ROM if necessary. <programlisting>
3034 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
3035 # <emphasis role="bold">rm afs.rc afs.conf</emphasis>
3036 # <emphasis role="bold">ln -s /etc/rc.d/init.d/afs afs.rc</emphasis>
3037 # <emphasis role="bold">ln -s /etc/sysconfig/afs afs.conf</emphasis>
3038 </programlisting></para>
3042 <para>If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to <link
3043 linkend="HDRWQ157">Setting Up Volumes and Loading Binaries into AFS</link>. Otherwise, the installation is
3049 <primary>afs file</primary>
3051 <secondary>AFS initialization file</secondary>
3055 <primary>files</primary>
3057 <secondary>afs</secondary>
3059 <tertiary>AFS initialization file</tertiary>
3063 <primary>Solaris</primary>
3065 <secondary>AFS initialization script</secondary>
3067 <tertiary>on client machine</tertiary>
3071 <sect2 id="HDRWQ156">
3072 <title>Running the Script on Solaris Systems</title>
3076 <para>Reboot the machine and log in again as the local superuser <emphasis role="bold">root</emphasis>. <programlisting>
3077 # <emphasis role="bold">cd /</emphasis>
3078 # <emphasis role="bold">shutdown -i6 -g0 -y</emphasis>
3079 login: <emphasis role="bold">root</emphasis>
3080 Password: <replaceable>root_password</replaceable>
3081 </programlisting></para>
3085 <para>Run the AFS initialization script. <programlisting>
3086 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
3087 </programlisting></para>
3091 <para>Change to the <emphasis role="bold">/etc/init.d</emphasis> directory and issue the <emphasis role="bold">ln
3092 -s</emphasis> command to create symbolic links that incorporate the AFS initialization script into the Solaris startup and
3093 shutdown sequence. <programlisting>
3094 # <emphasis role="bold">cd /etc/init.d</emphasis>
3095 # <emphasis role="bold">ln -s ../init.d/afs /etc/rc3.d/S99afs</emphasis>
3096 # <emphasis role="bold">ln -s ../init.d/afs /etc/rc0.d/K66afs</emphasis>
3097 </programlisting></para>
3101 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
3102 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc/init.d</emphasis> directories. If you want
3103 to avoid potential confusion by guaranteeing that they are always the same, create a link between them. You can always
3104 retrieve the original script from the AFS CD-ROM if necessary. <programlisting>
3105 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
3106 # <emphasis role="bold">rm afs.rc</emphasis>
3107 # <emphasis role="bold">ln -s /etc/init.d/afs afs.rc</emphasis>
3108 </programlisting></para>
3112 <para>If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to <link
3113 linkend="HDRWQ157">Setting Up Volumes and Loading Binaries into AFS</link>. Otherwise, the installation is
3119 <primary>storing</primary>
3121 <secondary>AFS binaries in volumes</secondary>
3125 <primary>creating</primary>
3127 <secondary>volume</secondary>
3129 <tertiary>for AFS binaries</tertiary>
3133 <primary>volume</primary>
3135 <secondary>for AFS binaries</secondary>
3139 <primary>binaries</primary>
3141 <secondary>storing AFS in volume</secondary>
3145 <primary>usr/afsws directory</primary>
3149 <primary>directories</primary>
3151 <secondary>/usr/afsws</secondary>
3156 <sect1 id="HDRWQ157">
3157 <title>Setting Up Volumes and Loading Binaries into AFS</title>
3159 <para>In this section, you link <emphasis role="bold">/usr/afsws</emphasis> on the local disk to the directory in AFS that
3160 houses AFS binaries for this system type. The conventional name for the AFS directory is <emphasis
3161 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3162 role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/usr/afsws</emphasis>.</para>
3164 <para>If this machine is an existing system type, the AFS directory presumably already exists. You can simply create a link from
3165 the local <emphasis role="bold">/usr/afsws</emphasis> directory to it. Follow the instructions in <link
3166 linkend="HDRWQ158">Linking /usr/afsws on an Existing System Type</link>.</para>
3168 <para>If this machine is a new system type (there are no AFS machines of this type in your cell), you must first create and
3169 mount volumes to store its AFS binaries, and then create the link from <emphasis role="bold">/usr/afsws</emphasis> to the new
3170 directory. See <link linkend="HDRWQ159">Creating Binary Volumes for a New System Type</link>.</para>
3172 <para>You can also store UNIX system binaries (the files normally stored in local disk directories such as <emphasis
3173 role="bold">/bin</emphasis>, <emphasis role="bold">/etc</emphasis>, and <emphasis role="bold">/lib</emphasis>) in volumes
3174 mounted under <emphasis role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3175 role="bold">/</emphasis><replaceable>sysname</replaceable>. See <link linkend="HDRWQ88">Storing System Binaries in AFS</link>
3178 <sect2 id="HDRWQ158">
3179 <title>Linking /usr/afsws on an Existing System Type</title>
3181 <para>If this client machine is an existing system type, there is already a volume mounted in the AFS filespace that houses
3182 AFS client binaries for it. <orderedlist>
3184 <para>Create <emphasis role="bold">/usr/afsws</emphasis> on the local disk as a symbolic link to the directory <emphasis
3185 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/@sys/usr/afsws</emphasis>. You can
3186 specify the actual system name instead of <emphasis role="bold">@sys</emphasis> if you wish, but the advantage of using
3187 <emphasis role="bold">@sys</emphasis> is that it remains valid if you upgrade this machine to a different system type.
3189 # <emphasis role="bold">ln -s /afs/</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/@sys/usr/afsws /usr/afsws</emphasis>
3190 </programlisting></para>
3194 <para><emphasis role="bold">(Optional)</emphasis> If you believe it is helpful to your users to access the AFS documents
3195 in a certain format via a local disk directory, create <emphasis role="bold">/usr/afsdoc</emphasis> on the local disk as
3196 a symbolic link to the documentation directory in AFS (<emphasis
3197 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3198 role="bold">/afsdoc/</emphasis><replaceable>format_name</replaceable>). <programlisting>
3199 # <emphasis role="bold">ln -s /afs/</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/afsdoc/</emphasis><replaceable>format_name</replaceable> <emphasis
3200 role="bold">/usr/afsdoc</emphasis>
3201 </programlisting></para>
3203 <para>An alternative is to create a link in each user's home directory to the <emphasis
3204 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3205 role="bold">/afsdoc/</emphasis><replaceable>format_name</replaceable> directory.</para>
3207 </orderedlist></para>
3210 <sect2 id="HDRWQ159">
3211 <title>Creating Binary Volumes for a New System Type</title>
3213 <para>If this client machine is a new system type, you must create and mount volumes for its binaries before you can link the
3214 local <emphasis role="bold">/usr/afsws</emphasis> directory to an AFS directory.</para>
3216 <para>To create and mount the volumes, you use the <emphasis role="bold">klog</emphasis> command to authenticate as an
3217 administrator and then issue commands from the <emphasis role="bold">vos</emphasis> and <emphasis role="bold">fs</emphasis>
3218 command suites. However, the command binaries are not yet available on this machine (by convention, they are accessible via
3219 the <emphasis role="bold">/usr/afsws</emphasis> link that you are about to create). You have two choices: <itemizedlist>
3221 <para>Perform all steps except the last one (Step <link linkend="LIWQ162">10</link>) on an existing AFS machine. On a
3222 file server machine, the <emphasis role="bold">klog</emphasis>, <emphasis role="bold">fs</emphasis> and <emphasis
3223 role="bold">vos</emphasis> binaries reside in the <emphasis role="bold">/usr/afs/bin</emphasis> directory. On client
3224 machines, the <emphasis role="bold">klog</emphasis> and <emphasis role="bold">fs</emphasis> binaries reside in the
3225 <emphasis role="bold">/usr/afsws/bin</emphasis> directory and the <emphasis role="bold">vos</emphasis> binary in the
3226 <emphasis role="bold">/usr/afsws/etc</emphasis> directory. Depending on how your PATH environment variable is set, you
3227 possibly need to precede the command names with a pathname.</para>
3229 <para>If you work on another AFS machine, be sure to substitute the new system type name for the
3230 <replaceable>sysname</replaceable> argument in the following commands, not the system type of the machine on which you
3231 are issuing the commands.</para>
3235 <para>Copy the necessary command binaries to a temporary location on the local disk, which enables you to perform the
3236 steps on the local machine. The following procedure installs them in the <emphasis role="bold">/tmp</emphasis> directory
3237 and removes them at the end. Depending on how your PATH environment variable is set, you possibly need to precede the
3238 command names with a pathname.</para>
3240 </itemizedlist></para>
3242 <para>Perform the following steps to create a volume for housing AFS binaries. <orderedlist>
3244 <para>Working either on the local machine or another AFS machine, mount the AFS CD-ROM for the new system type on the
3245 <emphasis role="bold">/cdrom</emphasis> directory, if it is not already. For instructions on mounting CD-ROMs (either
3246 locally or remotely via NFS), consult the operating system documentation.</para>
3250 <para>If working on the local machine, copy the necessary binaries to a temporary location on the local disk. Substitute
3251 a different directory name for <emphasis role="bold">/tmp</emphasis> if you wish. <programlisting>
3252 # <emphasis role="bold">cd /cdrom/</emphasis><replaceable>new_sysname</replaceable><emphasis role="bold">/root.server/usr/afs/bin</emphasis>
3253 # <emphasis role="bold">cp -p klog /tmp</emphasis>
3254 # <emphasis role="bold">cp -p fs /tmp</emphasis>
3255 # <emphasis role="bold">cp -p vos /tmp</emphasis>
3256 </programlisting></para>
3260 <para>Authenticate as the user <emphasis role="bold">admin</emphasis>. <programlisting>
3261 # <emphasis role="bold">klog admin</emphasis>
3262 Password: <replaceable>admin_password</replaceable>
3263 </programlisting></para>
3267 <para><anchor id="LIWQ160" />Issue the <emphasis role="bold">vos create</emphasis> command to create volumes for storing
3268 the AFS client binaries for this system type. The following example instruction creates volumes called
3269 <replaceable>sysname</replaceable>, <replaceable>sysname</replaceable>.<emphasis role="bold">usr</emphasis>, and
3270 <replaceable>sysname</replaceable>.<emphasis role="bold">usr.afsws</emphasis>. Refer to the <emphasis>OpenAFS Release
3271 Notes</emphasis> to learn the proper value of <replaceable>sysname</replaceable> for this system type. <programlisting>
3272 # <emphasis role="bold">vos create</emphasis> <<replaceable>machine name</replaceable>> <<replaceable>partition name</replaceable>> <replaceable>sysname</replaceable>
3273 # <emphasis role="bold">vos create</emphasis> <<replaceable>machine name</replaceable>> <<replaceable>partition name</replaceable>> <replaceable>sysname</replaceable><emphasis
3274 role="bold">.usr</emphasis>
3275 # <emphasis role="bold">vos create</emphasis> <<replaceable>machine name</replaceable>> <<replaceable>partition name</replaceable>> <replaceable>sysname</replaceable><emphasis
3276 role="bold">.usr.afsws</emphasis>
3277 </programlisting></para>
3281 <para>Issue the <emphasis role="bold">fs mkmount</emphasis> command to mount the newly created volumes. Because the
3282 <emphasis role="bold">root.cell</emphasis> volume is replicated, you must precede the <emphasis>cellname</emphasis> part
3283 of the pathname with a period to specify the read/write mount point, as shown. Then issue the <emphasis role="bold">vos
3284 release</emphasis> command to release a new replica of the <emphasis role="bold">root.cell</emphasis> volume, and the
3285 <emphasis role="bold">fs checkvolumes</emphasis> command to force the local Cache Manager to access them.
3287 # <emphasis role="bold">fs mkmount -dir /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable> <emphasis
3288 role="bold">-vol</emphasis> <replaceable>sysname</replaceable>
3289 # <emphasis role="bold">fs mkmount -dir /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis
3290 role="bold">/usr</emphasis> <emphasis role="bold">-vol</emphasis> <replaceable>sysname</replaceable><emphasis
3291 role="bold">.usr</emphasis>
3292 # <emphasis role="bold">fs mkmount -dir /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis
3293 role="bold">/usr/afsws</emphasis> <emphasis role="bold">-vol</emphasis> <replaceable>sysname</replaceable><emphasis
3294 role="bold">.usr.afsws</emphasis>
3295 # <emphasis role="bold">vos release root.cell</emphasis>
3296 # <emphasis role="bold">fs checkvolumes</emphasis>
3297 </programlisting></para>
3301 <para>Issue the <emphasis role="bold">fs setacl</emphasis> command to grant the <emphasis role="bold">l</emphasis>
3302 (<emphasis role="bold">lookup</emphasis>) and <emphasis role="bold">r</emphasis> (<emphasis role="bold">read</emphasis>)
3303 permissions to the <emphasis role="bold">system:anyuser</emphasis> group on each new directory's ACL. <programlisting>
3304 # <emphasis role="bold">cd /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable>
3305 # <emphasis role="bold">fs setacl -dir . usr usr/afsws -acl system:anyuser rl</emphasis>
3306 </programlisting></para>
3310 <para>Issue the <emphasis role="bold">fs setquota</emphasis> command to set an unlimited quota on the volume mounted at
3311 the <emphasis role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3312 role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/usr/afsws</emphasis> directory. This
3313 enables you to copy all of the appropriate files from the CD-ROM into the volume without exceeding the volume's
3316 <para>If you wish, you can set the volume's quota to a finite value after you complete the copying operation. At that
3317 point, use the <emphasis role="bold">vos examine</emphasis> command to determine how much space the volume is occupying.
3318 Then issue the <emphasis role="bold">fs setquota</emphasis> command to set a quota that is slightly larger.</para>
3321 # <emphasis role="bold">fs setquota /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis
3322 role="bold">/usr/afsws 0</emphasis>
3327 <para><anchor id="LIWQ161" />Copy the contents of the indicated directories from the CD-ROM into the <emphasis
3328 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3329 role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/usr/afsws</emphasis> directory.
3331 # <emphasis role="bold">cd /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis
3332 role="bold">/usr/afsws</emphasis>
3333 # <emphasis role="bold">cp -rp /cdrom/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/bin .</emphasis>
3334 # <emphasis role="bold">cp -rp /cdrom/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/etc .</emphasis>
3335 # <emphasis role="bold">cp -rp /cdrom/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/include .</emphasis>
3336 # <emphasis role="bold">cp -rp /cdrom/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/lib .</emphasis>
3337 </programlisting></para>
3341 <para>Issue the <emphasis role="bold">fs setacl</emphasis> command to set the ACL on each directory appropriately. To
3342 comply with the terms of your AFS License agreement, you must prevent unauthorized users from accessing AFS software. To
3343 enable access for locally authenticated users only, set the ACL on the <emphasis role="bold">etc</emphasis>, <emphasis
3344 role="bold">include</emphasis>, and <emphasis role="bold">lib</emphasis> subdirectories to grant the <emphasis
3345 role="bold">l</emphasis> and <emphasis role="bold">r</emphasis> permissions to the <emphasis
3346 role="bold">system:authuser</emphasis> group rather than the <emphasis role="bold">system:anyuser</emphasis> group. The
3347 <emphasis role="bold">system:anyuser</emphasis> group must retain the <emphasis role="bold">l</emphasis> and <emphasis
3348 role="bold">r</emphasis> permissions on the <emphasis role="bold">bin</emphasis> subdirectory to enable unauthenticated
3349 users to access the <emphasis role="bold">klog</emphasis> binary. To ensure that unauthorized users are not accessing
3350 AFS software, check periodically that the ACLs on these directories are set properly. <programlisting>
3351 # <emphasis role="bold">cd /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis
3352 role="bold">/usr/afsws</emphasis>
3353 # <emphasis role="bold">fs setacl -dir etc include lib -acl system:authuser rl</emphasis> \
3354 <emphasis role="bold">system:anyuser none</emphasis>
3355 </programlisting></para>
3359 <para><anchor id="LIWQ162" />Perform this step on the new client machine even if you have performed the previous steps
3360 on another machine. Create <emphasis role="bold">/usr/afsws</emphasis> on the local disk as a symbolic link to the
3361 directory <emphasis role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3362 role="bold">/@sys/usr/afsws</emphasis>. You can specify the actual system name instead of <emphasis
3363 role="bold">@sys</emphasis> if you wish, but the advantage of using <emphasis role="bold">@sys</emphasis> is that it
3364 remains valid if you upgrade this machine to a different system type. <programlisting>
3365 # <emphasis role="bold">ln -s /afs/</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/@sys/usr/afsws /usr/afsws</emphasis>
3366 </programlisting></para>
3370 <para><emphasis role="bold">(Optional)</emphasis> To enable users to issue commands from the AFS suites (such as
3371 <emphasis role="bold">fs</emphasis>) without having to specify a pathname to their binaries, include the <emphasis
3372 role="bold">/usr/afsws/bin</emphasis> and <emphasis role="bold">/usr/afsws/etc</emphasis> directories in the PATH
3373 environment variable you define in each user's shell initialization file (such as <emphasis
3374 role="bold">.cshrc</emphasis>).</para>
3378 <para><emphasis role="bold">(Optional)</emphasis> If you believe it is helpful to your users to access the AFS documents
3379 in a certain format via a local disk directory, create <emphasis role="bold">/usr/afsdoc</emphasis> on the local disk as
3380 a symbolic link to the documentation directory in AFS (<emphasis
3381 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3382 role="bold">/afsdoc/</emphasis><replaceable>format_name</replaceable>). <programlisting>
3383 # <emphasis role="bold">ln -s /afs/</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/afsdoc/</emphasis><replaceable>format_name</replaceable> <emphasis
3384 role="bold">/usr/afsdoc</emphasis>
3385 </programlisting></para>
3387 <para>An alternative is to create a link in each user's home directory to the <emphasis
3388 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3389 role="bold">/afsdoc/</emphasis><replaceable>format_name</replaceable> directory.</para>
3393 <para><emphasis role="bold">(Optional)</emphasis> If working on the local machine, remove the AFS binaries from the
3394 temporary location. They are now accessible in the <emphasis role="bold">/usr/afsws</emphasis> directory.
3396 # <emphasis role="bold">cd /tmp</emphasis>
3397 # <emphasis role="bold">rm klog fs vos</emphasis>
3398 </programlisting></para>
3400 </orderedlist></para>