conf/161710: SSHD starts on boot even if sshd_enable="
NO" in 8.2
Dimitry Andric
dim at FreeBSD.org
Fri Oct 28 20:40:07 UTC 2011
The following reply was made to PR conf/161710; it has been noted by GNATS.
From: Dimitry Andric <dim at FreeBSD.org>
To: bug-followup at FreeBSD.org, freebsd.org at 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
?
More information about the freebsd-rc
mailing list