Shared folder permissions

Discussions about using Linux guests in VirtualBox.
WilPro
Posts: 2
Joined: 28. Apr 2009, 00:42
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Kubuntu

Re: Shared folder permissions

Post by WilPro »

Thanks Perryg

I built another machine for Ubuntu 8.1 and started with the sharing from scratch and it worked! I feel much better about it now.

Maybe it was something with Kubuntu? It is the latest version which may have caused a problem. I will start again from scratch with Kubuntu.
platz
Posts: 6
Joined: 12. Nov 2008, 21:10
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: OpenSolaris 2009.06, Ubuntu 9.04, WIndows XP

Re: Shared folder permissions

Post by platz »

Perryg wrote:Then put the following in your fstab. and change the uid and gid to match yours.

Shared /mnt/Shared vboxsf defaults,rw,uid=1000,gid=1000 0 0
Sorry for the confusion, I'm just working through this now without any success. Should I also change /mnt/Shared to the path I'm using (which is just /mnt/share)?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Shared folder permissions

Post by Perryg »

@platz,
The instructions given were for user=WilPro
The Shared and the /mnt/Shared need to match your install.
Replace Shared with the name you actually gave the share and the /mnt/Shared to the actual mount point you created.
Remember that spaces and special characters are not allowed in the share name.
platz
Posts: 6
Joined: 12. Nov 2008, 21:10
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: OpenSolaris 2009.06, Ubuntu 9.04, WIndows XP

Re: Shared folder permissions

Post by platz »

Thanks, that makes sense. I'm still mounting with the same permissions and not able to set them in the file browser, either.
JMAN1156
Posts: 5
Joined: 21. Mar 2011, 23:42
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 8.10

Re: Shared folder permissions

Post by JMAN1156 »

I have Windows 7 as host, and Ubuntu as guest. I'm having issues file sharing, I installed guest additions, DKMS(or something like that) and set it up through the virtualbox program. I can find the file under /media/sf_blah but it says I don't have permissions. Am I missing a step? Every time I use code to mount I have permissions error, protocol error, or something else.

(if this has already be covered, I has searched and searched and couldn't find it, so sorry)
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Shared folder permissions

Post by Perryg »

user name in the vboxsf group on the guest?
JMAN1156
Posts: 5
Joined: 21. Mar 2011, 23:42
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 8.10

Re: Shared folder permissions

Post by JMAN1156 »

the same as my host username... you're just talking about the username in Ubuntu right?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Shared folder permissions

Post by Perryg »

the guests vboxsf group should have you guests login name in it.
type id in a terminal and see. If it isn't then you need to put it in.
JMAN1156
Posts: 5
Joined: 21. Mar 2011, 23:42
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 8.10

Re: Shared folder permissions

Post by JMAN1156 »

it gave me the same name as my login id, I also added that permission for folder sharing within windows, (I don't know if that matters, but I don't think it can hurt)

when I click on the folder it doesn't give me any login options, it just says "you do not have the permissions to view this folder". I have tried this through the terminanal using sudo, and it didn't work either.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Shared folder permissions

Post by Perryg »

1) what are you actually sharing
2) are we talking about the VBox shared folder or a network share.
JMAN1156
Posts: 5
Joined: 21. Mar 2011, 23:42
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 8.10

Re: Shared folder permissions

Post by JMAN1156 »

I am sharing a downloads folder on my Windows 7 machine to the ubuntu virutal machine, so a vbox shared folder
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Shared folder permissions

Post by Perryg »

Read Chapter 4.3 Shared folders in your VirtualBox users manual very carefully.
Also Windows 7 uses symlinks to the folders in your user space. You must make sure that you are sharing a real folder or you will have problems.
I usually create a separate folder (outside the user space and make it public) just for this purpose as Windows 7 is really finicky about sharing with anything not Windows.
JMAN1156
Posts: 5
Joined: 21. Mar 2011, 23:42
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 8.10

Re: Shared folder permissions

Post by JMAN1156 »

got it to work by manually mounting, I don't know why auto mounting isn't working... anyway the problem was I kept referring the sharename as sf_xxxxx, instead of just xxx
Post Reply