Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So over the weekend I arrive to work, boot my PC and run the virtualbox session of Ubuntu but now I get the message:

The folder contents could not be displayed You do not have the permissions necessary to view the contents of "sf_virtual"

I don't understand what could have happened? I did install an update and read an article to re-install Guest Additions and it still doesn't allow access in /media. When I do gksudo nautilus and then sudo ls -al /media/sf_virtual it will display all the files in virtual as -rwxrwx--- 1 root vboxsf numbers month date time filename. When I am under name in the terminal ls /media/sf_virtual it returns Permission denied. Any ideas on how to get access back? I have removed the shared folders and added new ones but it still doesn't work.

share|improve this question
up vote 3 down vote accepted

It sounds like your user is no longer a member of the vboxsf group - you can check by using the id command in a terminal or getent group vboxsf

If that's the case, you can add the user back with

sudo gpasswd --add <username> vboxsf

or the equivalent adduser or usermod command

You will probably need to log off and back on for the change to take effect

share|improve this answer
I faced the same problem, when I try to add the user it says gpasswd: group 'vboxsf' does not exist in /etc/group – qurban May 31 '14 at 19:05
@qurban Have you installed the VirtualBox Guest Additions ? – steeldriver May 31 '14 at 21:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.