yum install nfs-utils nfs-utils-lib system-config-nfs yum install nfs-utils nfs4-acl-tools portmap chkconfig nfs on chkconfig portmap on service nfs start echo 'portmap:ALL' >> /etc/hosts.deny echo 'portmap:192.168.1.0/24' >> /etc/hosts.allow service portmap start
run the firewall gui and turn on NFS4 (2049)
system-config-nfs #will launch the gui
vi /etc/exports /home 192.168.1.0/24(rw,sync,no_subtree_check,fsid=0) /home/submount 192.168.1.0/24(rw,sync,no_subtree_check,nohide) exportfs -a #or service nfs reload ?
apt-get install -y nfs-common echo '192.168.4.120 sv sv.isnew.org' >> /etc/hosts //sudo apt-get install sysv-rc-conf //netfs not needed on Ubuntu //sysv-rc-conf
mount -t nfs4 sv:/ /mnt
sv:/ /home nfs4 soft,intr,rsize=8192,wsize=8192,nosuid
/etc/login.defs
(.bashrc will have no effect)cat /etc/group # see what they are on the server groupadd -g 504 office groupadd -g 505 supervisor #now add users useradd -g 504 -u 503 -G 505 doug passwd doug #for exisiting users usermod -g 504 -u 501 andrewf usermod -G 505 andrewf
domain = cfaw.info
/etc/default/nfs-common
and set
NEED_IDMAPD= yes
service portmap restart; service nfs restart