Page 1 of 1

Denied access to host NTFS based VB shares

Posted: 11. Oct 2010, 01:43
by goodrick
I apologize if this has been covered in another thread. I wasn't able to locate it.

I boot my computer into Ubuntu 10.04. I have the latest version of VB installed. I have a second HD, NTFS formatted, in my computer. The second drive contains my VDI files and it is also the share point for all of my VB guest OSes. When in the host Ubuntu OS, I can browse the NTFS drive just fine (otherwise I couldn't launch the VDIs). But when I run my Linux guest OSes (Fedora 13, OpenSUSE 11.3, & OpenSolaris 2009.06) they all get the same permissions error when trying to access the VB share. I have tried mounting the share manually and used the fstab file. Same result either way, for all three Linux guest OSes. When I fire up a Windows based guest OS, it can use the VB share just fine. And if I boot the host computer into a Windows OS and access the very same Linux VDIs I access from Ubuntu, I can access the VB shared folders fine. So, essentially Linux guest OSes can access the VB share when running from a Windows host OS, but not when running from a Linux host, which can see the folder it's sharing just fine. What the heck?

Thanks in advance for any help.

Re: Denied access to host NTFS based VB shares

Posted: 11. Oct 2010, 02:00
by Perryg
Have you tried to mount the share with the options switch?

Code: Select all

mount -t vboxsf -o rw,uid=1000,gid=1000 <share name> <mount point>
Change uid and gid to match your id

Re: Denied access to host NTFS based VB shares

Posted: 15. Oct 2010, 04:48
by goodrick
Sorry - took me a bit to get back to this.

Command:
mount -t vboxsf -o rw,uid=brian,gid=brian data /mnt/windows-share

Results:
could not convert brian to integer, result = 0:Numerical result out of range

Puzzling. Thanks for any additional insight you can offer.

Re: Denied access to host NTFS based VB shares

Posted: 16. Oct 2010, 15:49
by Sasquatch
You have to use numbers, not actual names. You didn't execute what Perry wrote. Check your id by using the command 'id -u' for the numerical output of your user and 'id -gu' for the group ID number.