[NTLUG:Discuss] SuSE 9 or 9.1 PATH environment changes after su

Ralph Green, Jr severian at mail.joimail.com
Thu Sep 9 23:44:01 CDT 2004


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.





More information about the Discuss mailing list