array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } 111string(0) "" int(1) int(10) int(70) int(8640000) array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } VirtualBox: linux 没有权限访问共享文件夹的问题 - 爱码网
yongdaimi

公司不让用VMware, 只好用VirtualBox, 安装好增强工具后,设置VirtualBox共享文件夹如下:

不过在linux(Ubuntu 16.04, Win10)中打开却提示:This location could not be displayed. You dont have the permissions nessary to view the contents of "sf_linux_share" 

错误原因及解决办法

这个自动mount的文件夹linux_share的所有者为root,所属的组是vboxsf,并且只有这两个用户有访问权限。Virtualbox的共享文件夹一般都挂载在/media下面,用ll查看会发现文件夹的所有者是root,所有组是vboxsf,所以文件管理去无法访问是正常的,解决方法是把你自己加入到vboxsf组里面。

把自己添加到这个vboxsf组里面:  sudo usermod -a -G vboxsf 当前用户名 

完成之后记得重启下linux, 再次访问:

终于可以了。

(完)

分类:

技术点:

相关文章: