Daily Archives: July 27, 2017

configuring nfs server and mounting it

Published by:

NFS is one of the secure sharing system in linux. NFS is Network File System. It quite easy to setup, and more simple than samba.
/etc/hosts.allow
portmap: 192.168.1.2
lockd: 192.168.1.2
rquotad: 192.168.1.2
mountd: 192.168.1.2
statd: 192.168.1.2

/etc/hosts.deny
portmap: ALL
lockd: ALL
rquotad: ALL
mountd: ALL
statd: ALL

chmod a+x /etc/rc.d/rc.nfsd
/etc/rc.d/rc.nfsd start

nano /etc/exports
/mnt/sda1 192.168.1.2(rw,no_subtree_check) 92.168.1.3(ro,no_subtree_check)

$exportfs -r
that’s in server

this is in client
mount 192.168.1.1:/mnt/sda1 /home/me/computer1 -o nolock