Page 1 of 1

Problem with guest home dir on shared folder

Posted: 29. Sep 2010, 11:26
by juergh
Hi,

My host is Ubuntu 10.04 and the guest runs RHEL6. My home dir in the guest is on a shared folder, ie:
[root@vbox-rhel6 ~]# mount | grep juergh
rhel6 on /home/juergh type vboxsf (uid=1000,gid=1000,rw)

The problem I'm having is that when I log into the guest, I get the following error:
No directory /home/juergh!
Logging in with home = "/".
[juergh@vbox-rhel6 /]$

However I can chdir just fine to my home once I'm logged in:
[juergh@vbox-rhel6 /]$ cd
[juergh@vbox-rhel6 ~]$ pwd
/home/juergh

Permissions all seem to be fine. Any ideas what is going on?

Thanks
...Juerg

Re: Problem with guest home dir on shared folder

Posted: 29. Sep 2010, 13:50
by fixedwheel
Hi,
Permissions all seem to be fine.
and ownership?

Re: Problem with guest home dir on shared folder

Posted: 29. Sep 2010, 17:40
by qkb
The question is how/when you mount the shared folder: if it is done after login, then no wonder the folder is unavailable during login procedure.

Re: Problem with guest home dir on shared folder

Posted: 30. Sep 2010, 09:23
by juergh
fixedwheel wrote:Hi,
Permissions all seem to be fine.
and ownership?
Ownership is correct as well. All works fine once I log in and cd back to my homedir.

Re: Problem with guest home dir on shared folder

Posted: 30. Sep 2010, 09:27
by juergh
qkb wrote:The question is how/when you mount the shared folder: if it is done after login, then no wonder the folder is unavailable during login procedure.
The share is mounted during boot. That's not the issue. I can do multiple logins and they all fail with 'No directory /home/juergh'. Btw when I log in via ssh I get: 'Could not chdir to home directory /home/juergh: Permission denied'. And then I can cd right back to /home/juergh and all is fine.

Re: Problem with guest home dir on shared folder

Posted: 30. Sep 2010, 21:25
by Sasquatch
You may go to it, but can you even write in it? That's probably the whole problem. Post the mount command that is used and the output of the following two commands:

Code: Select all

ls -la /home
ls -la /home/juergh
Do use code blocks when posting terminal output.