bugzilla-daemon at mindrot.org
2003-Nov-15 16:01 UTC
[Bug 759] If sshd was started without explicit pathname, it dies when restarted
http://bugzilla.mindrot.org/show_bug.cgi?id=759 Summary: If sshd was started without explicit pathname, it dies when restarted Product: Portable OpenSSH Version: -current Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: openssh-bugs at mindrot.org ReportedBy: martin at freaknet.org Hi! We just had a major panic being unable to access our site server via ssh for a day. We thought we'd have to get on a plane and go physically to where it is hosted but fortunately one of our gurus managed to find some security exploits to get in and restart sshd. The cause turned out to be that someone had installed the latest version of OpenSSH, had killed and restarted sshd by saying "sshd"... one and a half months later, I came to reconfigure it, kill -HUPped it, and it just died because there was no "sshd" in its current directory. I didn't notice and logged out. Consequence: machine unaccessible to fix it (it's hosted in another country from where everybody lives). The fix is for the restart code to allow for this possibility and, if argv[0] doesn't contain any / characters, to try execvp after the initial execv in sshd.c If I can find a button that says "attach", I'll attach the diffs... All the best! ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Nov-15 16:08 UTC
[Bug 759] If sshd was started without explicit pathname, it dies when restarted
http://bugzilla.mindrot.org/show_bug.cgi?id=759 ------- Additional Comments From martin at freaknet.org 2003-11-15 09:08 ------- Created an attachment (id=499) --> (http://bugzilla.mindrot.org/attachment.cgi?id=499&action=view) Patch to sshd to fix pathless-restart trap ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Nov-15 16:48 UTC
[Bug 759] If sshd was started without explicit pathname, it dies when restarted
http://bugzilla.mindrot.org/show_bug.cgi?id=759 markus at openbsd.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Additional Comments From markus at openbsd.org 2003-11-15 09:48 ------- no, i don't think this will change. the current behaviour is documented, and your change will cause sshd to restart the first sshd from the $PATH. this is not really predictable behaviour. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Nov-15 16:56 UTC
[Bug 759] If sshd was started without explicit pathname, it dies when restarted
http://bugzilla.mindrot.org/show_bug.cgi?id=759 ------- Additional Comments From markus at openbsd.org 2003-11-15 09:56 ------- sshd rereads its configuration file when it receives a hangup signal, SIGHUP, by executing itself with the name it was started as, i.e., /usr/sbin/sshd. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.