尝试在 Vagrant 中使用同步文件夹的
NFS
插件,它可以正常工作,但是在虚拟机 (VM) 中,权限不正确。-rw-r--r-- 1 501 dialout 0 Jan 20 00:51 a
-rw-r--r-- 1 501 dialout 0 Jan 20 00:51 foo
我试图按照Vagrant文档在Vagrantfile
中设置uid
和gid
:
config.nfs.map_uid = 1001
config.nfs.map_gid = 1001
我希望它能在访客中使用正确的用户/组,但仍在使用501和dialout。 有什么想法吗?
:mount_options => [“dmode=777”,“fmode=666”]
的内容吗? - Frederic Henri