I'm using RH 6.2 and openssh-2.5.2p2-1, though I've had this problem with
every version of openssh and ssh I've used.

If I log in as root to the box from console, I have programs under /usr/sbin
in use. If I log in using ssh, I don't. 

Here's my PATH from console:

--snip--
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/jdk1.3.1/bin:/etc/rc.d/init.d:/usr/local/pgsql/bin:/root/bin
--snip--

And after ssh login:

--snip--
/usr/kerberos/sbin:/usr/kerberos/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/java/jdk1.3.1/bin:/etc/rc.d/init.d:/usr/local/pgsql/bin:/root/bin
--snip--

Now what I'm wondering is where does the "/sbin:/bin:/usr/sbin:/usr/bin" part
come to my PATH? Those directories are not mentioned in root/.bash_profile or
in etc/profile. 


Regards,
Peter



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to