> > Try "/etc/rc.d/init.d/sshd stop" or even "killall sshd"
> >
>
> That worked very well.
> So being in the init.d directory and running sshd stop is different then
> /etc/rc.d/init.d/sshd stop
> Sort of interesting but annoying

Quick lesson on the $PATH variable.  Your path as root is generally
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin which means if
you do not specify the full path, it will try and run something in the path
(the frist one it finds).  

When you just did "sshd stop" it found the sshd deamon in /usr/sbin and
tried to run that, which of course didnt know what "stop" ment (thus the
error). The script in /etc/rc.d/init.d does know, but is not apart of your
path.  For security's sake, your current directory is never apart of the
path (or sholdnt be, anyway).  If someone were to get a nasty program that
deletes everything you own, and name it "cd" and "ls" and put it in your
home directory, you would never know what hit you. Therefore, to run things
in your current directory, you need to be explicit, and do "./commandname"


Jay

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list