To set up the NFS server you need to set up the configuration files and start NFS.
For NFS to work, you only need to edit /etc/exports. However, this might result in an insecure setup and it is strongly recommended that the relevant changes are made to /etc/hosts.allow and /etc/hosts.deny to prevent security problems.
directory client(option[,option...])
ro | The default value. The directory is shared read only and the client machine will not be able to write it. |
rw | The client machine will have read and write access to the directory. |
no_root_squash | By default, any file request made by user root on the client machine is treated as if it is made by user nobody on the server.
If this option is selected is selected, then root on the client machine will have the same level of access to the files on
the system as root on the server.
Note: Please note the potential security implications with this option.
|
/home/user1/eclipse_workspace 192.168.0.1(rw,no_root_squash)
The portmap and associated rpc daemons need to be running before you can start NFS. Refer to the topicTo verify that NFS is running.
/etc/init.d/nfs start
usr/sbin/exportfs -ra