Entries in /etc/exports file
This file holds a list of entries; every entry denotes a volume which is shared and how it is shared. An entry in /etc/exports will classically look like this:
directory machine1(option11,option12) machine2(option31,option32)
where
directory
It specifies the directory to be shared. All directories under it inside the same file system will be shared as well if an entire volume is shared. Machine1 and machine2.Specifies the client machines which will have access to the directory. The machines might be listed through their IP addresses or their DNS addresses (example for machine.company.com or 192.168.0.8). Using IP addresses is more reliable and more secure.
optionxx
The option listing for every machine will describe what kind of access in which machine will have. Extremely Important options are:
- ro: Indicates that the directory is shared read only; the client machine will not be able to write to it. This is the default.
- rw: Denotes that the client machine will have read and write access to the directory.
Let consider the following example
/home/abchost1 (rw) host2 (ro) host3 (ro)