Re: su & $PATH & gdm

2005-06-27 Thread Bob Proulx
Paolo Pantaleo wrote: > Anyway the problem arises also with gdm: > if i run > startx > in gnome (ALT+F2 -> echo $PATH > ~/what_path) or in a terminal run by > gnome the $PATH is ok > if i use gdm the $PATH is not ok > (since gdm is run as root it will change user id shomewhere) I just posted a

su & $PATH & gdm

2005-06-26 Thread Paolo Pantaleo
OK sorry i shold read the man pages Anyway the problem arises also with gdm: if i run startx in gnome (ALT+F2 -> echo $PATH > ~/what_path) or in a terminal run by gnome the $PATH is ok if i use gdm the $PATH is not ok (since gdm is run as root it will change user id shomewhere)

Re: su & $PATH

2005-06-26 Thread Lech Karol Pawłaszek
On Sunday 26 of June 2005 12:29, Paolo Pantaleo wrote: > I noticed that after issuing the > su > command the $PATH variable has a different value. I think that this is > quite nasty if i added my own paths to $PATH. > Is this a bug, or not? > How can I do to make $PATH remain the same? (set $PA

su & $PATH

2005-06-26 Thread Paolo Pantaleo
I noticed that after issuing the su command the $PATH variable has a different value. I think that this is quite nasty if i added my own paths to $PATH. Is this a bug, or not? How can I do to make $PATH remain the same? (set $PATH again in bashrc?) Thnx PAolo

Re: su/PATH & newgrp/HOME

1999-07-28 Thread Gerhard Kroder
Kent Howard wrote: > > 1) Is it just me or does su set the PATH to a default and forget >the currently set one? Is this intentional? it depends on invocation (and thoug is intentional): you may set a complete su-environmen with "su -" or just change your effective user id with "su", see "man

su/PATH & newgrp/HOME

1999-07-27 Thread Kent Howard
1) Is it just me or does su set the PATH to a default and forget the currently set one? Is this intentional? 2) newgrp unsets the HOME environment variable. Just wanted to verify this and see if I should post a bug report. Version: potato ( all updates applied as of today ) Thanks, - Kent