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
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)
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
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
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
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
6 matches
Mail list logo