解决 VirtualBox里Ubuntu的共享文件夹无法访问 之问题

4231人阅读 评论(0) 收藏 举报
分类:

原文标题:You do not have the permissions necessary to view the contents of ‘shared_folder’
原文链接:http://darrenma.wordpress.com/2012/07/18/you-do-not-have-the-permissions-necessary-to-view-the-contents-of-shared_folder/


转载于此。其实最重要的就是文末的最后一条命令。

sudo usermod -a -G vboxsf darren

darren是你自己的用户名。比如我的是xwchen。
使用这个命令后,如果不能马上生效,需要重启一下系统。
这样,我在Windows里共享给VirtualBox里Ubuntu的文件夹就能访问了。


I develop within Virtualbox(VB). Often I need to be able to share files and folders between my host machine(the machine VB is installed on) and my client machine(the OS installed in VB, in this case Ubuntu).

It’s easy to share a folder. If you follow these steps:

1) Open Virtualbox, select your OS on the left then click on Shared Folders on the right.

2) Click on the Green cross on the top right to add a new Shared Folder

3) Fill out the form by selecting which folder you want to shared between your machines. Check auto mount and Save.

4) Start up your Ubuntu now and navigate to /media and you will see your shared folder.

Easy right? But it’s not over. If you try to open this shared folder you’ll probably land up with this error: “You do not have the permissions necessary to view the contents of ‘shared_folder’ “

To fix this you need to add the correct permission group to your user. (Resource) but seeing as I use Ubuntu 12.04 I was unable to find Manage Groups anywhere. It seems that it’s hidden under gnome 2. (Resource)

If you are like me and want to install as little extra stuff onto your machine as possible then instead of using gnome tools or ubuntu tweak to manage the groups lets use the terminal. Just type

1
sudo usermod -a -G vboxsf darren

(and replace ‘darren’ with your username)

*NOTE the change will only be visible once you logout and login again! (Resource)

There you go. Now if you go to /media/ you’ll be able to see your shared folder and access it. I also like to make a symlink from there to my home directory to make it even easier to access.


1
0

猜你在找
【直播】机器学习&数据挖掘7周实训--韦玮
【套餐】系统集成项目管理工程师顺利通关--徐朋
【直播】3小时掌握Docker最佳实战-徐西宁
【套餐】机器学习系列套餐(算法+实战)--唐宇迪
【直播】计算机视觉原理及实战--屈教授
【套餐】微信订阅号+服务号Java版 v2.0--翟东平
【直播】机器学习之矩阵--黄博士
【套餐】微信订阅号+服务号Java版 v2.0--翟东平
【直播】机器学习之凸优化--马博士
【套餐】Javascript 设计模式实战--曾亮
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:644373次
    • 积分:7685
    • 等级:
    • 排名:第2721名
    • 原创:105篇
    • 转载:134篇
    • 译文:4篇
    • 评论:140条
    Disclaimer
    The blog articles expressed here are my own opinions and do not necessarily represent those of current or past employers.
    博客专栏
    最新评论