Bug 174227 - su cannot change to new user's home directory
su cannot change to new user's home directory
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Anaconda Maintenance Team
Mike McLean
: 174607 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2005-11-26 04:29 EST by Marius Andreiana
Modified: 2007-11-30 17:11 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-20 07:25:28 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Marius Andreiana 2005-11-26 04:29:45 EST
$ su -
su: warning: cannot change directory to /root: Permission denied
su: warning: cannot change directory to /root: Permission denied

cd works after this.
It also happens with su from root to regular user.
Comment 1 n0dalus 2005-11-26 12:23:57 EST
I am also having this problem.
I'm not sure if this is related, but after using `su -` I can't load any
graphical programs (just get "Can't connect to X server 0:0" etc).
Comment 2 Marius Andreiana 2005-11-27 02:09:39 EST
Yes, same for me. The fix is to run 'xhost +' with the original logged in user.
(it used to work without it on FC4). 
I'm not sure this is a bug or feature. Tim, perhaps you could confirm please?
Comment 3 Tim Waugh 2005-11-27 05:47:02 EST
No, the fix is 'restorecon -v /root'.  So why is /root getting the wrong
security context?  Reassigning to filesystem.
Comment 4 Bill Nottingham 2005-11-28 14:57:55 EST
Context isn't set in the package. Moving to anaconda, cc'ing policy people.
Comment 5 Jeremy Katz 2005-11-30 22:21:06 EST
Dan -- did you track anything down here?
Comment 6 Jeremy Katz 2005-11-30 22:34:46 EST
*** Bug 174607 has been marked as a duplicate of this bug. ***
Comment 7 Daniel Walsh 2006-01-02 11:50:08 EST
Fixed in policycoreutils-1.29.2-8
Comment 8 Rahul Sundaram 2006-02-20 07:25:28 EST

This works for me after the recent updates. Closing as fixed. 

Note You need to log in before you can comment on or make changes to this bug.