On Wed, 31 Jan 2007 15:44:34 -0700, Craig White wrote:
----
as user...
echo $PATH
/usr/kerberos/bin:/usr/java/jre/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/NX/bin
as user that performs 'su'
/usr/kerberos/sbin:/usr/java/jre/bin:/usr/kerberos/bin:/usr/java/jre/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/NX/bin:/usr/NX/bin
as user that performs 'su -' # note the dash
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/java/jre/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/NX/bin:/root/bin
Note that each is different and it is an important difference...
# which lspci lsmod
/sbin/lspci
/sbin/lsmod
and /sbin path (and for that matter, /usr/sbin path) is only available
to the user who performs the command 'su -'
OK, Very Dumb Question : is "su - " any different from "su - root"?
It was a great day for those of us with trifocal fingers and arthritic
eyeballs -- all praise to linux developers! -- when some kind soul enhanced
the gnome terminal so that it keeps a separate bash history for each
profile. Nobody goes near my machines but me; I can afford to keep
two tabs open to root profile routinely -- and start each time with a
stroke or two to the up arrow. So I might as well have the most powerful
command on it, and stick to that.
--
Beartooth Staffwright, PhD, Neo-Redneck Linux Convert
Remember I know precious little of what I am talking about.