- 首先 Linux 客户机需要安装 open-vm-tools
- 然后用
whereis vmhgfs-fuse
命令检查vmhgfs-fuse
程序 - 用
id
命令查看当前用户的uid
和gid
- 用
umask
命令查看当前用户的umask
- 临时挂载命令
/usr/bin/vmhgfs-fuse .host:/ /home/username/yourfolder -o allow_other -o uid=xxx -o gid=xxx -o umask=xxx
- 永久挂载
在/etc/fstab
表最下面一行添加
.host:/ /home/username/yourfolder fuse.vmhgfs-fuse allow_other,uid=xxx,gid=xxx,umask=xxx 0 0