Ask Your Question

ocharles's profile - activity

2013-10-19 14:57:43 -0500 received badge  Popular Question (source)
2013-10-19 14:57:43 -0500 received badge  Notable Question (source)
2013-10-19 14:57:43 -0500 received badge  Famous Question (source)
2013-01-15 16:32:15 -0500 answered a question Upon login current working directory is /, not $HOME

Solved it! My home directory had an incorrect SELinux profile, the following fixed it:

semanage fcontext -a -t user_home_t /home
restorecon -v /home

Attempting to login to console 2 showed the error, so I was finally able to track it down.

2013-01-15 03:53:28 -0500 commented answer Upon login current working directory is /, not $HOME

@ztank1013: I don't think it's anything to do with the fact that I use zsh, because this happens for applications I open with XFCE, such as Emacs or Vim. I tried chsh -s /bin/bash ollie and when I log back in (via GDM), bash is also opening in /, not $HOME. I had a look through those dot files, and nothing stands out :(

2013-01-14 13:38:15 -0500 commented answer Upon login current working directory is /, not $HOME

No luck sadly: usermod: no changes

2013-01-14 13:37:31 -0500 commented question Upon login current working directory is /, not $HOME

@ztank1013: Sure thing: uid=1000(ollie) gid=1000(ollie) groups=1000(ollie),4(adm),6(disk),10(wheel),11(cdrom),18(dialout),63(audio),991(pulse-access),992(pulse),1001(vboxusers) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 and ollie:x:1000:1000:Oliver Charles:/home/ollie:/bin/zsh

2013-01-14 10:17:26 -0500 received badge  Student (source)
2013-01-14 09:27:39 -0500 asked a question Upon login current working directory is /, not $HOME

Hi,

I use XFCE with GDM, and currently when I login my current working directory is set to /, not /home/ollie as I'd expect. I'm not really sure where to start looking to solve this, but it's a tad frustrating when everything keeps opening in the wrong directory!