http://bugzilla.novell.com/show_bug.cgi?id=560903
http://bugzilla.novell.com/show_bug.cgi?id=560903#c5
Warren Jones changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|wjones@fluke.com |
--- Comment #5 from Warren Jones 2009-12-08 20:53:06 UTC ---
OK, I see what's going on. The csh and bash paths are indeed the same if you
log in from the console. The paths are different if you log in via ssh, which
is what I was doing.
In /etc/profile, the initial path is set explicitly:
PATH=/usr/local/bin:/usr/bin:/bin
But no initial path is set in /etc/csh.login, so csh starts with the path it
inherits from /bin/login or /usr/sbin/sshd.
The path used by login is defined in /etc/login.defs:
ENV_PATH /usr/local/bin:/usr/bin:/bin
In /etc/ssh/sshd_config we find:
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
Not the same!
If you want the same csh path regardless of how you log in (which I think is
desirable), then you'll have to set the initial path explicitly in
/etc/csh.login, just as it's set in /etc/profile.
The patch I suggested is equivalent, but it avoids setting the path twice.
Another solution would be to use the path from /etc/login.defs when compiling
sshd.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.