--- richard@tortoise.demon.co.uk wrote:
Hi Thomas,
Maybe this issue will have to remain a mystery to me for now.
Hmm, I'd like to get it sorted, if not for my own interest.
One thing I am going to suggest is you *try* the following:
su -c'bash -norc'
That would effectively stop bash from reading ~/.bashrc et al on "su".
sunil@linux:~ > echo $PATH /usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/lib/java/bin:/var/lib /dosemu:/usr/games/bin:/usr/games:/opt/gnome/bin:/opt/kde2/bin:/opt/kd e/bin:/usr/openwin/bin:.:/opt/gnome/bin:/opt/pilotsdk/bin:/home/sunil/ myprogs sunil@linux:~ > su -c'bash -norc' Password: bash-2.05# echo $PATH /usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin bash-2.05#
As you see, $PATH is still changing.
Yes, it is. This *must* be to do with the way ~/.bashrc is setup.
I discovered /etc/login.defs earlier. According to man login.defs, the entries there set a default path, but the the values in my /etc/login.defs still don't explain the $PATH I'm getting after su.
login.defs, yes does do that. I was reluctant to mention it at first, since actually it also defines who logs in too. This could well be a bug in the way SuSE have managed their initscripts. If only Roger Whittiker kept a closer eye on this list... Richard, if I can help further, let me know. This issue is most interesting. -- Thomas Adam
Thanks for your help,
regards Richard -- richard@tortoise.demon.co.uk
-- To unsubscribe, e-mail: suse-linux-uk-schools-unsubscribe@suse.com For additional commands, e-mail: suse-linux-uk-schools-help@suse.com
===== Thomas Adam "The Linux Weekend Mechanic" -- www.linuxgazette.com ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/