[NTLUG:Discuss] SuSE 9 or 9.1 PATH environment changes after su
Stephen Davidson
gorky at freenet.carleton.ca
Sat Sep 11 13:26:40 CDT 2004
Ralph Green, Jr wrote:
>Howdy,
> Another list member has told me off-list that he does not believe me
>when I told him that the PATH environment variable changed after I did
>an su to root. I tried this on SuSE 9 and 9.1 and I did not pass any
>parameters to the su command(i.e., su, not su -). Can anyone else here
>tell me what their SuSE system does? If you have tweaked your system to
>change this behavior from it's default, then please tell me that, too.
>Good day,
>Ralph
>
>p.s., Here are the steps.
>1. Open a Terminal window, while logged in as non-root user
>2. Type the command set
>3. Note the value for PATH. Y will probably have to scroll up to see
>it.
>4. Type the command su and enter your password, if asked.
>5, Type the command set
>6. Note the value for PATH. Y will probably have to scroll up to see
>it.
>7. Compare the two results for PATH and report back whether they are the
>same or different.
>
>
>
>_______________________________________________
>https://ntlug.org/mailman/listinfo/discuss
>
>
>
SuSE 9.0>>>
steve at blue:~> echo $PATH
/home/steve/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin
steve at blue:~> su
Password:
blue:/home/steve # echo $PATH
/usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin
blue:/home/steve #
Paths are different.
Regards,
Steve
--
Java/J2EE Developer/Integrator
Stephen Davidson and Associates, Inc.
Chair, Dallas/FortWorth J2EE Sig
214-724-7741
More information about the Discuss
mailing list