Monday, September 20, 2010

How to Setup NFS in Linux

Make sure we have the NFS (both client and server) package installed.
1. Edit /etc/exports
/home/myuser/share *rw(root_squash)
rw --> read write
ro --> read only
root_squash --> the remote root user is not allowed to have a root level access
no_root_squash --> the remote root user is allowed to have a root-level access
2. Verify it
showmount -e [nfs_server_address]
3. Open firewall port 2049
4. Restart the nfsserver deamon
/etc/init.d/nfsserver restart
5. Mount the remote export.
mount -t nfs [nfs_server_address]:/home/myuser/share nfs/

No comments:

Post a Comment