Hello, this blog has moved to here : http://blog.ericgazoni.me, the blog on WordPress will be kept not to break links, but will not be updated anymore, see you there !
When using auto-mount I could list directory content, but only as root. When using my regular user, I had a “Permission denied” error. Apparently it’s an old issue that was not really fixed.
I spent an hour looking for this, so I’m posting it in hope it can help someone:
Let’s say I have a “Documents” shared folder on my OSX host, and I want to mount it on /media/my-share on the Ubuntu guest:
- Install Vbox additions
- Add the share in the “Shared Folders” screen, in Virtualbox, give full access, but don’t check auto-mount
- Check your uid&gid on the Ubuntu guest (by doing a cat /etc/passwd and looking for the numbers after your name, mine are 1000 and 1000)
- Add the following line in your guest’s /etc/fstab
Documents /media/my-share vboxsf uid=1000,gid=1000,nodev,noexec,nosuid,auto,rw 0 0
Thanks, this helped me!
Thanks a lot
Thanks a lot !! VB 4.1.4 is still buggy on that side.
Many thanks, while that’s quite complicated it gave me the right hint to solve it.
You can get this more easy by adding the user to the group “vboxsf”
usermod -G vboxsf