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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!