Specifying access restrictions in /etc/exports
Specifying the same restrictions for all hosts
For all hosts to mount read-write
To enable all hosts to mount the resource read-write, complete the following step.
Step
|
Action
|
|
1 |
Enter the path name of the resource without any options.
Example
/vol/vol0/home
Result
All hosts can mount the /vol/vol0/home directory as read-write.
|
For all hosts to mount a resource read-only
To enable all hosts to mount the resource read-only, complete the following step.
Step
|
Action
|
|
1 |
Enter the path name of the resource with the ro option.
Example
/vol/vol0/home -ro
Result
All hosts can mount the /vol/vol0/home directory as read-only.
|
Specifying different restrictions for different hosts
For some hosts to mount read-write
To have some hosts mount the resource read-write and other hosts be unable to mount the resource, complete the following step.
Step
|
Action
|
|
1 |
Enter the path name of the resource with the access option.
Example
/vol/vol0/home -access=host1:host2
Result
Host1 and host2 can mount the /vol/vol0/home directory as read-write. Other hosts cannot mount the /vol/vol0/home directory.
|
For some hosts to mount read-only
To have some hosts mount the resource read-only and other hosts be unable to mount the resource, complete the following step.
Step
|
Action
|
|
1 |
Enter the path name of the resource with the access and ro options.
Example
/vol/vol0/home -access=host1:host2,ro
Result
Host1 and host2 can mount the /vol/vol0/home directory as read-only. Other hosts cannot mount the /vol/vol0/home directory.
|
For some hosts to mount read-write and all others to mount read-only
To enable some hosts to mount a resource read-write and all other hosts to mount the resource read-only, complete the following step.
Step
|
Action
|
|
1 |
Enter the path name of the resource with the access and rw options.
Example
/vol/vol0/home -rw=host1:host2
Result
Host1 and host2 can mount the /vol/vol0/home directory as read-write. All other hosts can mount the /vol/vol0/home directory as read-only.
|
For some hosts to mount read-write and some hosts to mount read-only
To have some hosts mount a resource read-write and some hosts mount the resource read-only, complete the following step.
Step
|
Action
|
|
1 |
Enter the path name of the resource with the access and rw options.
The hosts with the rw option must be a subset of the hosts specified with the access option. Hosts specified after the access option but not after the rw option can mount the resource read-only.
Example
/vol/vol0/home -access=host1:host2,rw=host1
Result
Host1 can mount the /vol/vol0/home directory as read-write. Host2 can mount the /vol/vol0/home directory as read-only. Hosts other than host1 and host2 cannot mount the /vol/vol0/home directory.
|
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00323
File: nfs5.htm
Last updated: 01/15/03 15:45:12