scp : Problems with pathing
Tuc
tuc at ttsg.com
Fri Mar 29 12:37:05 EST 2002
Hi,
I'm sure I'll get a few "RTFM", but I hope I'll allay those feelings.
I'm getting the "scp: command not found". I've read the FAQ. I've
read bugs 42 and 82 in bugzilla. Hopefully, I didn't overlook something.
At a minimum, defines.h has :
#ifdef USER_PATH
# ifdef _PATH_STDPATH
# undef _PATH_STDPATH
# endif
# define _PATH_STDPATH USER_PATH
#endif
#ifndef _PATH_STDPATH
# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
#endif
So, if scp is in 1 of those 4, it should be found. Its currently
in /usr/local/bin/scp. So :
I copy it to /usr/bin, and try... It works.
I copy it to /bin, and try... It works.
I copy it to /usr/sbin, and try... It doesn't work.
At this point, I already feel stumped, but I press on.
I copy it to /sbin, and try... It doesn't work.
Ok, so then maybe USER_PATH is set, so I check config.h and then
I find :
#define USER_PATH "/usr/bin:/bin:/usr/sbin:/sbin:/usr/contrib/bin:/usr/old/bin:/usr/local/bin"
Ok, so lets go down the list.
/usr/bin and /bin work, ok.
/usr/sbin and /sbin don't work.... Maybe I should stop here.
/usr/contrib/bin ... works. ODD.
/usr/old/bin, and then where it REALLY resided, /usr/local/bin
don't work.
Ok, so, maybe its taking the users path....
MACHINE# su - USER
MACHINE:/usr/home/USER $ echo $PATH
/usr/home/./USER/bin:/bin:/usr/bin:/usr/X11/bin:/usr/contrib/bin:/usr/contrib/mh/bin:/usr/games:/usr/local/bin
MACHINE:/usr/home/USER $ which scp
/usr/local/bin/scp
That would mean to me that it should be able to find it, since it was
in /usr/local/bin the entire time.
Am I missing something somewhere?
Thanks, Tuc/TTSG Internet Services, Inc.
More information about the openssh-unix-dev
mailing list