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

Stephen Davidson gorky at ispwest.com
Mon Sep 13 07:14:48 CDT 2004


Bryan J. Smith wrote:

>On Sat, 2004-09-11 at 14:26, Stephen Davidson wrote:
>  
>
>>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.
>>    
>>
>
>Most of my experience is with SLSS/SLES 8.
>Is this a change in 9?
>
>If so, maybe SuSE is not using an alias, but another approach.
>The alias is just the most common I've seen (e.g., Mandrake)
>
>As such, on SuSE Linux 9.x, what do you get from:  
>  $ su -
>  # echo $PATH
>
>As well as,
>  $ which su
>
>Just curious.  Thanx.
>
>-- Bryan
>
>  
>
steve at blue:/tmp> 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:/tmp> su -
Password:
blue:~ # echo $PATH
/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin
blue:~ # exit
logout
steve at blue:/tmp> which su
/bin/su
steve at blue:/tmp>

Paths are different.  The su - command seems to set up the normal system 
root path.

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