NFS Services Administrator's Guide (B.11.31.05) September 2009

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