一. 前提
2. centos 6.5 作为nfs-client
二. 故障及解决
1. centos mount之后发现文件夹所属用户和用户组都为“1000”, 无法修改,无法访问。
2.
原因:ubuntu的UID从1000开始, 而centos UID从500开始,所以不对应(not mapping), 所以产生问题。 “On my Debian host system, standard UIDs start at 1000, while in the CentOS guest system, UIDs start at 501. Coincidentally, Mac OS X also starts UIDs at 501 — so on their systems, the files were already owned by vagrant”, 摘自[3]
3.
解决: 在centos上修改uid和gid
usermod -u 1000 user
groupmod -g 1000 group
但会出现[4]中问题, 不过可以通过chown来解决
Reference
[4]
关于uid与gid的修改