User`s manual

UC-7408 User’s Manual Managing Communication
4-18
NOTE Click on the following links for more information about NFS:
http://www.tldp.org/HOWTO/NFS-HOWTO/inde
x.html
http://nfs.sourceforge.net/nfs-howto/client.html
http://nfs.sourceforge.net/nfs-howto/serv
er.html
Setting up UC-7408 as an NFS Server
By default, UC-7408 enables the service /etc/init.d/nfs-user-server. The service link file
S25nfs-user-server is located in the directory /rc.d/rc2.d-rc5.d.
Edit the NFS server configuration file /etc/exports to set up the remote host (NTF client) list and
access rights for a specific directory. The file formats are shown below:
#vi /etc/exports
File Format:
directory machine1(option11,option12) machine2(option21,option22)
directory
The directory that will be shared with the NFS Client.
machine1 and machine2
Client machines that will have access to the directory. A machine can be listed by its DNS
address or IP address (e.g., machine.company.com or 192.168.0.8).
optionxx
The option list for a machine describes the kind of access the machine will have. Important
options are:
ro
Read only. This is the default.
rw
Readable and Writeable.
no_root_squash
If no_root_squash is selected, then the root on the client machine will have the same level of
access to files on the system as the root on the server. This can have serious security
implications, although it may be necessary if you want to do administrative work on the client
machine that involves the exported directories. You should only specify this option when you
have a good reason.
root_squash
Any file request made by the user root on the client machine is treated as if it is made by user
nobody on the server. (Exactly which UID the request is mapped to depends on the UID of
user “nobody” on the server, not the client.)
sync
Sync data to memory and flash disk.
async
The async option instructs the server to lie to the client, telling the client that all data has been
written to the stable storage.
Example 1
/tmp *(rw,no_root_squash)
In this example, UC-7408 shares the /tmp directory to everyone, gives everyone both read and
write authority. The root user on the client machine will have the same level of access to files on
the system as the root on the server.