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.
Circa 2002-Mar-28 20:37:05 -0500 dixit Tuc: : 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. Are you certain the the sshd that is running on the remote system is the one you compiled with that USER_PATH? -- jim knoble | jmknoble at pobox.com | http://www.pobox.com/~jmknoble/ (GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 262 bytes Desc: not available Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20020329/b8ae8da0/attachment.bin
> > > > > > Circa 2002-Mar-28 20:37:05 -0500 dixit Tuc: > > > > > > > > > > > > : 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. > > > > > > > > > > > > Are you certain the the sshd that is running on the remote system is > > > > > > the one you compiled with that USER_PATH? > > > > > > > > > > > Quite sure. > > > > > > > > What does "strings sshd | grep bin" say?[snip]> > > > Hmm, doesn't look like a PATH in there anywhere. Mine has > > /usr/bin:/bin:/usr/sbin:/sbin right above the /bin/sh /usr/local/etc/sshrc > > line. Something is going wrong with your build. > > > > E-mail me privately your config.h, config.log and the configure > > command line you used. And what platform is this again? > > > BSD/OS, 4.0.1 and 4.1Here is what's going on. Your config.h has #define HAVE_LOGIN_CAP_H 1 #define HAVE_LOGIN_GETCAPBOOL 1 --------< defines.h >------- #if defined(HAVE_LOGIN_GETCAPBOOL) && defined(HAVE_LOGIN_CAP_H) # define HAVE_LOGIN_CAP #endif ---------------------------- -----< session.c >----- (edited) #ifdef HAVE_LOGIN_CAP (void) setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH); child_set_env(&env, &envsize, "PATH", getenv("PATH")); #else /* HAVE_LOGIN_CAP */ child_set_env(&env, &envsize, "PATH", _PATH_STDPATH); #endif /* HAVE_LOGIN_CAP */ --------------------------- So the path you want, "_PATH_STDPATH" will not be used. I'm not sure what to do about it. I have no BSD here. -- Tim Rice Multitalents (707) 887-1469 tim at multitalents.net