Not sure if this is correct explanation but when you login as ssh I believe
your doing it initially as normal user.  When you do just su your not
getting the full root profile so therefore your not getting it's path
properties and having to use /sbin or /usr/sbin in front of the command.

I believe if you use "su -" that will give you full root properties and
therefore those path's would work.

Hope that works and is understandable.

Mike

----- Original Message -----
From: "Peter Peltonen" <[EMAIL PROTECTED]>
To: "RH List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 5:41 AM
Subject: PATH not set correctly under ssh session


>
> 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:/b
in:/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.




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

Reply via email to