NFS Services Administrator's Guide

Contents
5
Example of Automounting a Users Home Directory . . . . . . . . . . . . . . . . . . . . . . 117
To Automount Multiple Directories Simultaneously (Hierarchical Mounts) . . . . . 118
To Include an Automounter Map in Another Automounter Map. . . . . . . . . . . . . . . 119
To Create a Hierarchy of Automounter Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
To Turn Off an Automounter Map with the -null Map. . . . . . . . . . . . . . . . . . . . . . . 121
To Enable AutoFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
To Disable AutoFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
To Verify Your AutoFS Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
To Modify or Remove (Unmount) an Automounted Directory . . . . . . . . . . . . . . . . . 124
Configuring and Using NFS Netgroups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
To Create Netgroups in the /etc/netgroup File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Netgroup Examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
To Create Netgroups in the NIS+ netgroup Table . . . . . . . . . . . . . . . . . . . . . . . . . . 127
To Use Netgroups in Configuration Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Using Netgroups in the /etc/exports File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Using Netgroups in the /etc/hosts.equiv or $HOME/.rhosts File . . . . . . . . . . . . . 129
Using Netgroups in the /etc/passwd File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Using Netgroups in the /etc/group File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Configuring the Other NFS Daemons and Services . . . . . . . . . . . . . . . . . . . . . . . . . . 132
To Enable the Other NFS Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
To Restrict Access to the Other NFS Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Examples from /var/adm/inetd.sec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
3. Configuring the Cache File System (CacheFS)
The Cache File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
CacheFS Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Configuring CacheFS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
To Configure a Local File System as Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
To Mount an NFS File System Using CacheFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
To Automount a File System Using CacheFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
4. Configuring and Administering NIS
Overview of NIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Information Managed by NIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Structure of the NIS Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Planning the NIS Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
To Determine the Number of NIS Domains You Need . . . . . . . . . . . . . . . . . . . . . . . 151
To Determine the Number of NIS Servers You Need . . . . . . . . . . . . . . . . . . . . . . . . 152