NFS Services Administrator's Guide (B.11.31.02) January 2008

Configuring and Administering NFS Clients ......................................................................................38
NFS Client Configuration Files and Daemons................................................................................38
Configuring the NFSv4 Client Protocol Version.............................................................................39
Deciding Between Standard-Mounted Directories and Automounted Directories........................39
Enabling an NFS Client ..................................................................................................................40
Mounting Remote Directories ........................................................................................................40
Mounting a Remote Directory on an NFS client........................................................................40
Enabling Client-Side Failover..........................................................................................................41
Examples of NFS Mounts ..........................................................................................................42
Secure Mounting of Directories.......................................................................................................43
An Example for Securely Mounting a directory........................................................................43
Changing the Default Mount Options.............................................................................................44
Unmounting (Removing) a Mounted Directory.............................................................................44
Disabling NFS Client Capability.....................................................................................................44
NFS Client and Server Transport Connections.....................................................................................45
Supporting 1MB Transfer for TCP mounts.....................................................................................45
Changes to the NFS Server Daemon...............................................................................................46
Configuring and Using NFS Netgroups...............................................................................................46
Creating Netgroups in the /etc/netgroup File..........................................................................46
Netgroup Examples...................................................................................................................47
Using Netgroups in Configuration Files.........................................................................................48
Using Netgroups in the /etc/dfs/dfstab File.....................................................................48
Using Netgroups in the /etc/hosts.equiv or $HOME/.rhosts File.................................48
Using Netgroups in the /etc/passwd File..............................................................................49
Using Netgroups in the /etc/group File................................................................................49
Configuring RPC-based Services..........................................................................................................50
Enabling Other RPC Services..........................................................................................................50
Restricting Access to RPC-based Services.......................................................................................51
Examples from /var/adm/inetd.sec...................................................................................51
3 Configuring and Administering AutoFS.....................................................................53
Overview...............................................................................................................................................53
AutoFS Filesystem...........................................................................................................................53
The automount Command............................................................................................................54
The automountd Daemon .............................................................................................................54
Maps Overview.....................................................................................................................................55
Features ................................................................................................................................................57
On-Demand Mounting....................................................................................................................57
Browsability for Indirect Maps........................................................................................................58
Concurrent Mount And Unmount..................................................................................................58
NFS Loopback Mount......................................................................................................................59
Client-side Failover Support............................................................................................................59
Secure NFS Support.........................................................................................................................59
Reliable NFS Ping............................................................................................................................59
Supported Filesystems..........................................................................................................................59
Supported Backends (Map Locations)..................................................................................................60
Enabling LDAP Support for AutoFS...............................................................................................60
AutoFS Configuration Prerequisites.....................................................................................................61
Updating from Automounter to AutoFS..............................................................................................62
AutoFS Configuration Changes............................................................................................................63
Configuring AutoFS Using the nfsconf File.................................................................................63
Configuring AutoFS Using the/etc/default/autofs File.......................................................64
Enabling AutoFS...................................................................................................................................64
Notes on AutoFS Master Map..............................................................................................................65
4 Table of Contents