Date: Fri, 28 Oct 2011 20:40:07 GMT From: Dimitry Andric <dim@FreeBSD.org> To: freebsd-rc@FreeBSD.org Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable=" NO" in 8.2 Message-ID: <201110282040.p9SKe7nh057806@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/161710; it has been noted by GNATS. From: Dimitry Andric <dim@FreeBSD.org> To: bug-followup@FreeBSD.org, freebsd.org@logicalsolutns.com Cc: Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable="NO" in 8.2 Date: Fri, 28 Oct 2011 22:38:29 +0200 I tried reproducing this on 8-STABLE, by: 1) setting sshd_enable="NO" in /etc/rc.conf 2) setting sshd_flags="-p 9991" in /etc/rc.conf 3) adding '/usr/sbin/sshd -p 22200' to /etc/rc.local 4) adding inetd_enable="YES" in /etc/rc.conf 5) uncommenting the default ssh lines in /etc/inetd.conf End result, after rebooting, is: 1) sshd is running as "/usr/sbin/sshd -p 22200", listening on port 22200 as expected 2) inetd is listening on port 22, as expected 3) sshd is NOT started by /etc/rc.d/sshd. In fact, if you run '/etc/rc.d/sshd start', you get the expected error message about sshd not being enabled. In short, I cannot reproduce your issue. It could help if you post some more information, for example, what is the output of: /bin/sh -x /etc/rc.d/sshd start ?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110282040.p9SKe7nh057806>