Darren Moffat
2001-Oct-25 23:10 UTC
Default $PATH of rsh (Was Re: What risk is X11Forward to a server?)
>Traditionally the rsh command (as implemented on SysV systems such as >hpux which is where my experience comes from) implements >/usr/local/bin:/usr/bin:/bin, etc., the operative directory being >/usr/local/bin. But openssh does not. Which means I always need toFirst I wouldn't say that HPUX was a good example of SysV, second /usr/local/bin is certainly not ever placed in the PATH under Solaris (which is an SysV derivative in some ways). In Solaris you can change the default PATH by either updating one of the shell init scripts or chaning PATH in /etc/default/login to do it in a shell independant way. -- Darren J Moffat
Bob Proulx
2001-Oct-26 05:02 UTC
Default $PATH of rsh (Was Re: What risk is X11Forward to a server?)
> First I wouldn't say that HPUX was a good example of SysV, second > /usr/local/bin is certainly not ever placed in the PATH under Solaris > (which is an SysV derivative in some ways).I agree hpux is a hybrid. Which is why I mentioned it, so it would be a clue about what I was talking about. I did not realize that Solaris did not do that. AIX neither does it place /usr/local/bin in the rsh path.> In Solaris you can change the default PATH by either updating one of > the shell init scripts or chaning PATH in /etc/default/login to do it > in a shell independant way.On AIX, PATH and other variables are set in /etc/environment. HPUX has /etc/PATH. Solaris has /etc/default/login. Hmm... Wish there was a consistent interface to this. And on none of those systems do I know of an easy way to localize it for ssh since usually those are all read at interative shell startup by /etc/profile and not on non-interactive shell startup when ssh runs. Bob
Seemingly Similar Threads
- rsync rsh XP->Unix Terminal Read cygwin
- [Bug 1924] New: unable to rsync between a PC with cygwin and a unix machine using rsh
- Portability hacks + alpha HPUX1020 port
- rsync 2.5.5, HPUX, getting unexplained error at main.c(578)
- [Bug 1080] 4.1p1 to 4.2p1 broke UsePrivilegeSeparation on HPUX