"Permission denied" error when accessing shared folder between Ubuntu guest and OS X host

0

0

I use Ubuntu 12.04 as a guest and OS X Lion on a 2011 MacBook Pro as the VM host with VirtualBox. They are both fresh stock installs.

I walked through the settings for the Ubuntu guest to have a directory shared in the VirtualBox settings pane for the particular VM.

I'm able to navigate to /media/sf_sharedDIR/ from Ubuntu, but upon getting to the folder, I get a "permission denied" error.

I think it's the host side as I know I have to configure my directory on the host side to share properly, but I can't remember for the life of me how to do something like that on a Mac.

chris

Posted 2012-05-06T06:35:31.123

Reputation: 648

So which folder did you share from the OS X host? Maybe this is what affects you?

– slhck – 2012-05-06T09:48:52.337

went into my /users dir then my user directory, then created a folder in there called ubushare essentially the path looks like /users/monkey/ubushare/ – chris – 2012-05-06T10:18:21.483

Answers

1

There are a couple other variables you did not mention like the MAC fs your running. but either way this is how I overcame that same issue but in VMWare and I had a MAC OS X connection off the host, but on the same internal network. I have always noticed that when connecting remotely with MAC machines the security settings are always a problem even when backing up files en-mass I have had "permission" problems.

For the MAC connections I always install Samba on the Linux guest and then configure it to allow the specific parameters for the MAC's on my network (I mean Apple MAC's not MAC addr) and I make sure to disable all authorization / passwords for those shares and machines. Then from the MAC I make the connection to the Samba share. That way I am connecting in the other direction from the MAC and I am using Samba to manage the connection on the guest, the files I share between the two are never a problem in this config.

I know Vbox and VMWare both provide tools so you don't have to do this and they usually always work well. But Apple is always the challenge when connecting outside the Apple proper and it usually comes down to the MAC fs.

Give Samba a try it's pretty easy and makes ocnnecting to Linux very easy no matter the fs or connection.

apesa

Posted 2012-05-06T06:35:31.123

Reputation: 309