Page 2 of 2

Re: Problem with shared folders

Posted: 16. May 2010, 18:04
by Sasquatch
No, we don't mean that. We mean that you have two places where write privileges are set: on the Host with NTFS security and on the Guest with the mount command and UID parameter option.

Re: Problem with shared folders

Posted: 16. May 2010, 19:00
by Entegy
I think I've misrepresented my systems since you mentioned the whole Mac-writing-to-NTFS thing

My first system: A custom built PC running Windows 7 x64. I have an Ubuntu 10.04 guest on this system that gets read-only access and an XP guest that gets write access to the host's Download folder.

My second system: A MacBook Pro that runs Snow Leopard with 64-bit kernel extensions on. For testing, I installed an XP guest and an Ubuntu guest on this system. In no way is the MBP trying to access the first system's Windows installation. The XP guest once again gets full access to this system's user's Downloads folder. The Ubuntu guest can't even mount that share.

This is why I don't think it's just a host permissions issue. I'm getting a failure on two different folders on two different systems with two different permissions structures.

Re: Problem with shared folders

Posted: 16. May 2010, 19:57
by Sasquatch
And what is the full command you use to mount the shared folders in Linux and what is the output of it (if you don't get any output, meaning the mount succeeded, post the output of the mount command with the SF line)?

Re: Problem with shared folders

Posted: 16. May 2010, 20:04
by Entegy
mount -t vboxsf Dl /home/entegy/Desktop/Dl

I'm naming the shared folder the same thing on both systems.

On my Windows PC, the mount succeeds, but in read-only.
On my MacBook: I get the following error: /sbin/mount.vboxsf mounting failed with the error: Invalid argument.

The Dl folder is created in advance. Also remember that early in this topic I tried your advice to not name the folder the same thing as the shared folder and it didn't solve anything.

Re: Problem with shared folders

Posted: 17. May 2010, 20:13
by Sasquatch
Ok, too bad about the name not working, but try lower case name only, and a bit longer perhaps. Take the names I used in my howto.

As for the read-only part, that's discussed in my howto too, use "-o uid=1000,gid=1000", or whatever UID/GID your VM user has.

Re: Problem with shared folders

Posted: 18. May 2010, 00:04
by Entegy
How would you find uid and gid?

Re: Problem with shared folders

Posted: 18. May 2010, 00:53
by Perryg
type id in terminal

Re: Problem with shared folders

Posted: 18. May 2010, 14:51
by Entegy
Alright, I modified my commands in rc.local with this:

Code: Select all

mount -t vboxsf -o rw,uid=1000,gid=1000 Box /home/entegy/Desktop/Box
mount -t vboxsf -o rw,uid=1000,gid=1000 hostdownload /home/entegy/Desktop/Dl
No luck still. On Windows host, the hostdownload folder remains read-only. Haven't tried on MacBook yet (it's dead and I forgot the AC adaptor at a friend's...)

Re: Problem with shared folders

Posted: 18. May 2010, 16:22
by Perryg
You have to understand what you are trying to do with sharing your "Windows home directory like Downloads" is not going to happen without changing the security that has been imposed on that folder by Windows.

Windows has locked that folder down and you will need to change the permissions on it to make it happen.
VirtualBox shared folders are not at the security level that it needs to be to do that. Look up sharing your Windows 7 home folders on the net and you will find out how to make it happen (although I would strongly suggest that you don't).

For Windows 7 you would need to add the folder to a library and change the permissions by taking ownership (that's right you don't own it) and then change the permissions to allow everyone since VBox uses the generic account to access the share (no login or password). Or you can setup a network share and mount it that way since you can send your login and password. Still not safe and opens a security risk since the login and password are sent in normal text. You will still need to change the permissions as well. Keep in mind that with the addition of UAC Windows expects things to be the way it was set so you probably will have features that don't work properly and your configuration settings may not be able to be stored/saved. That is what I found out when I tried to take ownership of those folders in my tests and had to reload the OS to get the permissions back to where they needed to be to get Windows 7 to work properly.

Anyway you look at this it is a Windows problem and one that you will need to take up with them. Search the MS social network, there are plenty of people that are trying to do this and the suggestions are all over the place. Most don't work and make the OS unusable.

Can't help you with the MAC, but there are a few here that can. From what I know the mount should work if applied properly. You should open a new ticket in the MAC as host section if you still have problems on the MAC.

PS Happy Birthday

Re: Problem with shared folders

Posted: 20. May 2010, 18:36
by Entegy
I think I'll just use a subfolder, since that works. Thanks for everything and thanks for the birthday wish. :)

Re: Problem with shared folders

Posted: 12. Jan 2011, 13:43
by aaronc
I had a problem with this for such a long time, i found the problem was that i had installed some updates that included a new kernel which made my version of vbox additions incompatible with the guest OS, i just reinstalled vbox additions and it worked fine!!