From: Kenn Humborg (kenn at domain avalon.wombat.ie)
Date: Thu 14 Oct 1999 - 22:46:46 IST
On Thu, Oct 14, 1999 at 02:04:53PM +0100, Damian O'Sullivan wrote:
> Yes root can login. Also it is not a path issue as I added /usr/local/bin
> where scp resides to roots path although I don't see why roots .bashrc
> would be sourced.
Yes, but is /usr/local/bin on the PATH _before_ sshd tries to
exec bash to exec scp? If root's .bashrc is not read, and that's
where you are adding /usr/local/bin to the path, then scp won't
be found.
I've found that ssh gets the initial path from either
/usr/include/paths.h (or something similar) or from compile-time
comfiguration options _when_compiling_ssh_. And IIRC, it
used separate initial paths for root and non-root.
In short, make a link from /usr/bin/scp to /usr/local/bin/scp.
Kenn
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:44 GMT