从金总那儿偷学的知识
nfs设置写权限
nfs在mount时文件夹所属的用户会改变
解决方案(指定uid):
将/etc/exports中的配置改为: (rw,sync,no_subtree_check,all_squash,anonuid=0,anongid=0),即设置anonuid和anongid
all_squash tells NFS that for any user connecting from ip, ignore their actual UID/GID and instead treat them as if UID=anonuid and GID=anongid. Since you set anonuid=0,anongid=0 that gives all users on ip root access privileges on /STORAGE, effectively bypassing all security on /STORAGE and leaving it wide open to abuse from anyone appearing to come from the IP address.
Since you set anonuid=0,anongid=0 that gives all users on ip root access privileges on /STORAGE