NFS Services Administrator Guide for 11i v3 (5900-2572, September 2012)
mount -o public nfs://onc31/usr/%A0abc /Casey/Clay
If the public option or a URL is specified, the mount command attempts to connect to the
server using the public file handle. The daemons rpcbind and mountd are not contacted.
In this example, the NFS client mounts /Casey/Clay directory by using a public file handle,
and an NFS URL that has a non 7-bit ASCII escape sequence from the NFS server, onc31.
• Mounting an NFS filesystem using native path
mount -o public onc31:C:Casey:test1 /Casey/test
A native path is a pathname that is interpreted according to conventions used on the native
operating system of the NFS server.
In this example, the NFS client mounts the /Casey/test directory using a native path and
a public file handle.
• Mounting a replicated set of NFS filesystems with same pathnames
mount -r onc21,onc23,onc25:/Casey/Clay /Casey/Clay
In this example, the NFS client mounts a single filesystem, /Casey/Clay that has been
replicated to a number of servers with the same pathnames. This enables the NFS client to
failover to either server onc21, onc23, or onc25 if the current server has become
unavailable.
• Mounting replicated set of NFS file systems with different pathnames
mount -r onc21:/Casey/Clay,onc23:/Var/Clay,nfs://srv-z/Clay /Casey/Clay
In this example, the NFS client mounts a replicated set of NFS file systems with different
pathnames.
Secure Mounting of Directories
The mount command enables you to specify the security mode for each NFS mount-point. This
allows the NFS client to request a specific security mode. However, if the specific mode does not
exist on the server, then the mount fails. Use the sec option to specify the security mode.
If sec is not specified in NFSv2, then the AUTH_SYS mode is used by default. If sec is not specified
in NFSv3, then the default action is for the NFS client to query the server about the security mode
to be used. The resulting security mode is negotiated between the NFS client and server. For more
information on the available security modes, see nfssec(5).
An Example for Securely Mounting a directory
In the following example, the NFS client forces the use of krb5 as the secure mode. The krb5
secure mode uses the Kerberos V5 protocol to authenticate users before granting access to the
shared filesystems. In this example, the NFS server, onc21, also supports the same secure mode.
mount -F nfs -o sec=krb5 onc21:/casey/nfs /casey/nfs
NOTE: For specific configuration information, see “Secure NFS Setup with Kerberos” (page 25).
Changing the Default Mount Options
To change the default mount options, follow these steps:
1. Modify the NFS mount options in the /etc/fstab file, or the AutoFS map, as needed. For
more information on the different mount options that NFS supports, see mount_nfs(1M).
If you changed the mount options for a directory that is currently mounted, you must unmount
and remount it before the changes take effect. To unmount and remount the directory, enter
the following commands:
38 Configuring and Administering NFS Services