天天看點

nfs部署和優化 -2

用戶端:

cat /etc/passwd

顯示使用者 weifeng 500

服務端:

vim /etc/exports

/mnt 192.168.1.105(rw,sync,all_squash,anonuid=500,anongid=500)

exportfs -arv

cd

umount -l /opt/

mount -t nfs -onolock,nfsvers=3 192.168.1.16:/mnt /opt

cd /opt/

ls -l

touch 2.txt

顯示建立檔案使用者名 weifeng

/mnt 192.168.1.105(rw,sync,no_root__squash)

cd

umount /opt/

rm -rf ./*

touch 111

顯示建立檔案使用者名 root

實際配置:

繼續閱讀