Red Hat Bugzilla – Bug 129045
su hangs when su'ing as normal user to root
Last modified: 2007-11-30 17:10:46 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510
Description of problem:
When I issue 'su' and the root password nothing happens.
If I issue 'su' and a wrong root password I get 'su: password incorrect'
If I issue 'su -' and the root password I login as root.
This problem has been observed on two machines both running NIS
support. The problem occurs for both NIS and local users.
On a stand-alone machine without NIS support there is no problem with su
The problem was not present in the previous FC1 installation
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Install FC2 choose NIS support during installation
2.Issue 'su' in a terminal when logged in as a normal user
Actual Results: After issuing the root password nothing happens
Expected Results: I should have been loggin in as root
Does this happen if you log in as root and attempt 'su'? If so,
please attach the 'log' output of 'strace su 2>log'.
There are no problems with 'su' when I am logged in as root.
Then please run 'strace -fp PID' as root, where PID is the bash
session of the user about to run su. Thanks.
Created attachment 102478 [details]
Output from 'strace -fp'
In the last line of the log there appears to be an attempt to access
"/ra1/linux/nmrpipe/nmrbin.linux/bash". This is an network drive to
which root on my machine do not have read-privileges.
If I log in as root and attempt to 'cd /ra1' the shell hangs.
This is from a PATH traversal. Don't put directories in PATH that
cannot be searched.