You do not have the permissions necessary to view the contents of ‘shared_folder’

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

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.

Advertisements

13 thoughts on “You do not have the permissions necessary to view the contents of ‘shared_folder’

  1. Everything is very open with a very clear explanation of the challenges.
    It was really informative. Your site is extremely helpful.
    Thanks for sharing!

  2. Thanks for sharing, it worked fine. However, this type of making it impossible to use Linux (and I have the alegedly most simple “Windows like” version “Zorin”) is why it will never get off the ground as a replacement for Windows. I set up Lunix as the sole user and I have to give myself permission to view my own files throught some dumb and convoluted method for which there is zero information in the OS? Seriously, this is not merely “you need to be a nerd”, this is an impossible load of rubbish and design incompetence. Imagine needing to search the web to open a folder in Windows. Microsoft would never have survived. I can see why Linux is so safe and used by so few now, you can’t use it. (I’m an advanced user, been building my own PC’s and configuring the OS for 30 years.) This is the third time I’ve installed Lunix for a look and it’s just not worth the effort especially considering it’s got all the stupid Microsoft features I seek to avoid (like fixed folders) with even less ability to kill them off plus a mountain more requirement that’s simply say “Please don’t use Linux.”. And the Open Source office programmes are the same: “Lets get all the most stupid features of Microdumb and put them in open source.”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s