2018年9月5日 星期三

NFS限制寫入UID、GID

Server
cat /etc/exports
/sharepoint 10.140.0.0/16(rw,sync,all_squash,anonuid=2000,anongid=500) 192.168.2.0/24(rw,all_squash,anonuid=2000,anongid=500)


Client
useradd -u 2000 -M -s /sbin/nologin nfsg
groupadd -g 500 ftpgroup


/bin/mount -t nfs -o vers=3,rw,bg,soft 10.140.0.51:/sharepoing /mountpoint

沒有留言:

張貼留言