Page 1 of 1

Can't access to my shared folder

Posted: 13. Oct 2016, 15:47
by Captain Flam
Hi folks !

I work under windows 7 64bits, and I need to compile my code under servral OS including Linux 32 bits and 64 bits.
So I installed Oracle VM VirtualBox, and created 2 VM :
- the first one : Ubuntu 64bits
- the second one : Ubuntu 32bits
In both a installed the guest addons and created a shared folder.
In the Ubuntu 64bits, every thing is fine, I can access in R/W to my shared folder...
In the Ubuntu 32bits, I did exactly the same, but when I try to access to my shared folder a get this :

Code: Select all

cflam@cflam-VirtualBox:~$ ll /media
total 96
drwxr-xr-x   5 root root    4096 oct.  10 17:12 ./
drwxr-xr-x  23 root root    4096 oct.  10 15:48 ../
drwxr-x---+  2 root root    4096 oct.  10 15:57 cflam/
drwxrwx---   1 root vboxsf 81920 oct.  11 11:11 sf_Temp/
cflam@cflam-VirtualBox:~$ ll /media/sf_Temp/
ls: cannot open directory '/media/sf_Temp/': Permission denied
For information, in the 64 bits version, I have exactly the same rights and owner (drwxrwx--- root vboxsf) on this folder.

Any clue ?
(by the way, why my shared folder had been mounted in /media ?)

Thanks by advance !

Captain'Flam

Re: Can't access to my shared folder

Posted: 13. Oct 2016, 15:53
by mpack
Please post a VM log file. With the VM fully shut down, right click and "Show Log" in the GUI, save "VBox.log" (ONLY) to a zip, and attach the zip here.

Re: Can't access to my shared folder

Posted: 13. Oct 2016, 16:22
by Perryg
(by the way, why my shared folder had been mounted in /media ?)
Because you used the auto-mount feature when you created the share. I do not use it because of this very reason. Use a normal mount and set it to load with /etc/rc.local. See following:
viewtopic.php?f=29&t=15868

Re: Can't access to my shared folder

Posted: 13. Oct 2016, 16:23
by Captain Flam
Thank you for your prompt answer !

The zip is attached...

Re: Can't access to my shared folder

Posted: 14. Oct 2016, 08:52
by Captain Flam
Thanks Perryg, I tried sudo mount -t vboxsf share ~/host from your link and it worked !
I also suppressed the auto-mounted shared folder...

:D :D :D

PS : But I still don't understand why is it different from my 64 bits VM...

Re: Can't access to my shared folder

Posted: 14. Oct 2016, 13:29
by Perryg
But I still don't understand why is it different from my 64 bits VM...
I'm not sure that the bit difference has anything to do with it. Timing issue maybe, but the fact that permissions on the media folder is so restrictive and leave the user without complete access.