When you export a resource, you can specify the access restrictions that govern how the resource can be mounted. If you export a resource without specifying access restrictions, it can be mounted read-write by all hosts.
You specify access restrictions using export options in the /etc/exports file or with command line options for the exportfs command. (These options are identical using either method.) Access restriction options determine
When multiple restrictions are applied to the same resource, the most restrictive option always takes precedence.
This option determines the user ID for the root user on the client who sends the NFS requests after mounting the resource. The following list describes the effect of including or excluding a host from the root option:
Note
Having a root UID does not guarantee read-write access. If an ro option is specified for a resource, the ro option overrides the root option, making the resource a read-only resource.
It gives read-write access to the specified hosts. If no hosts are specified, all hosts have read-write access.
It gives read-only access to the specified hosts. If no hosts are specified, all hosts have read-only access.
It determines the UID for the root user on the client. The following table describes the effects of the anon option.
The client is not specified by the root option for the resource |
|
The UID specified by the anon option is not used. The effective UID is 0. |
The following list describes the default UID specified by the anon option and the meanings of some special UIDs:
When Data ONTAP receives a mount request for a resource, it takes into consideration all options pertaining to the resource to determine applicable access restrictions.
The /etc/exports file contains the following entry for the /vol/vol0 volume:
/vol/vol0 -ro=host1,root=host1,rw=host2
The ro and root options allow host1 to mount the /vol/vol0 volume with root access. The rw option, however, specifies that hosts other than host2 have only read access. Because the most restrictive option takes precedence, host1 can only mount the /vol/vol0 volume as a read-only resource.
The /etc/exports file contains the following entry for the /vol/vol0 volume:
/vol/vol0 -ro=host1:host2,root=host1
The ro and root options allow host1 to mount the /vol/vol0 volume with root access. The ro option, however, makes the /vol/vol0 volume a read-only resource to all hosts. As a result, host1 can only mount the /vol/vol0 volume as a read-only resource.
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00473
File: nfs3.htm
Last updated: 11/25/03 18:02:36