Can't access to my shared folder

Discussions about using Linux guests in VirtualBox.
Post Reply
Captain Flam
Posts: 3
Joined: 13. Oct 2016, 15:13

Can't access to my shared folder

Post 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
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Can't access to my shared folder

Post 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can't access to my shared folder

Post 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
Captain Flam
Posts: 3
Joined: 13. Oct 2016, 15:13

Re: Can't access to my shared folder

Post by Captain Flam »

Thank you for your prompt answer !

The zip is attached...
Attachments
vbox.log.captainflam.zip
zip of my "VBox.log"
(25.11 KiB) Downloaded 38 times
Captain Flam
Posts: 3
Joined: 13. Oct 2016, 15:13

Re: Can't access to my shared folder

Post 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...
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can't access to my shared folder

Post 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.
Post Reply