共享文件夹找不到?
网上让重装vm-tools的方法都没用的。现在VMware针对大部分系统已经自动安装了。
查看/mnt
目录是否有hgfs
子目录,如果没有则需要手动挂载
sudo vmhgfs-fuse .host:/ /mnt/hgfs
现在
sudo -s
cd /mnt/hgfs
就可以看到共享文件内容了
普通用户无法查看和操作共享文件夹?
在root下chmod更改权限是没有用的,正确的姿势:
重新挂载(如果已经挂载,需要unmount)
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
优雅使用
首先取消sudo
命令需要输入密码的步骤
sudo gedit /etc/sudoers.tmp
找到这一行
%sudo ALL=(ALL:ALL) ALL
改为
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
然后将挂载指令写入profile,开机执行一次
sudo echo "sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other" >> /etc/profile
在home目录创建软连接
ln -s /mnt/hgfs/[share folder name] ~