Library Table of Contents Index Previous Next Comments

How /etc/exports works

Specifying access restrictions in /etc/exports

Specifying the same restrictions for all hosts  Top

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  Top

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.

Library Table of Contents Index Previous Next Comments