From owner-freebsd-rc@FreeBSD.ORG Fri Oct 28 21:30:14 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 CD3DF106566B for ; Fri, 28 Oct 2011 21:30:14 +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 BBF3A8FC18 for ; Fri, 28 Oct 2011 21:30:14 +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 p9SLUEYU002235 for ; Fri, 28 Oct 2011 21:30:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9SLUEOY002230; Fri, 28 Oct 2011 21:30:14 GMT (envelope-from gnats) Date: Fri, 28 Oct 2011 21:30:14 GMT Message-Id: <201110282130.p9SLUEOY002230@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: John Blazek 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: John Blazek 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 21:30:14 -0000 The following reply was made to PR conf/161710; it has been noted by GNATS. From: John Blazek To: Dimitry Andric Cc: bug-followup@FreeBSD.org Subject: Re: conf/161710: SSHD starts on boot even if sshd_enable="NO" in 8.2 Date: Fri, 28 Oct 2011 16:28:41 -0500 Hello, Thank you for attempting to reproduce it. I concur with your result 3b) If you try to type /etc/rc.d/sshd start -= it wont start. The servers that are exhibiting this are currently production servers and I cannot conveniently reboot them on command. I will build a fresh box and see if I can duplicate it from scratch. You are welcome to TeamView or SSH/screen view one of the servers to examine the configuration. -john At 03:38 PM 10/28/2011, Dimitry Andric wrote: >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 > >?