From owner-freebsd-rc@FreeBSD.ORG Fri Oct 28 20:40:07 2011 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CFEC1065670 for ; Fri, 28 Oct 2011 20:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 33BDA8FC0A for ; Fri, 28 Oct 2011 20:40:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9SKe7F1057811 for ; Fri, 28 Oct 2011 20:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9SKe7nh057806; Fri, 28 Oct 2011 20:40:07 GMT (envelope-from gnats) Date: Fri, 28 Oct 2011 20:40:07 GMT Message-Id: <201110282040.p9SKe7nh057806@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Dimitry Andric Cc: Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable=" NO" in 8.2 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dimitry Andric List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2011 20:40:07 -0000 The following reply was made to PR conf/161710; it has been noted by GNATS. From: Dimitry Andric 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 ?