From owner-freebsd-arch Sun Sep 3 5:36:11 2000 Delivered-To: freebsd-arch@freebsd.org Received: from nothing-going-on.demon.co.uk (nothing-going-on.demon.co.uk [193.237.89.66]) by hub.freebsd.org (Postfix) with ESMTP id 066D237B423; Sun, 3 Sep 2000 05:35:57 -0700 (PDT) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.11.0/8.11.0) id e83CZE184997; Sun, 3 Sep 2000 13:35:14 +0100 (BST) (envelope-from nik) Date: Sun, 3 Sep 2000 13:35:09 +0100 From: Nik Clayton To: Kris Kennaway Cc: arch@freebsd.org Subject: Re: Enabling sshd by default Message-ID: <20000903133508.A84865@canyon.nothing-going-on.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from kris@FreeBSD.org on Fri, Sep 01, 2000 at 09:22:55PM -0700 Organization: FreeBSD Project Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Sep 01, 2000 at 09:22:55PM -0700, Kris Kennaway wrote: > What say you all to the following patch: > > =================================================================== > RCS file: /home/ncvs/src/etc/defaults/rc.conf,v > retrieving revision 1.77 > diff -u -r1.77 rc.conf > --- etc/defaults/rc.conf 2000/08/18 09:37:50 1.77 > +++ etc/defaults/rc.conf 2000/09/02 04:14:33 > @@ -134,7 +134,7 @@ > pppoed_provider="*" # Provider and ppp(8) config file entry. > pppoed_flags="-P /var/run/pppoed.pid" # Flags to pppoed (if enabled). > pppoed_interface="fxp0" # The interface that pppoed runs on. > -sshd_enable="NO" # Enable sshd > +sshd_enable="YES" # Enable sshd > sshd_program="/usr/sbin/sshd" # path to sshd, if you want a different one. > sshd_flags="" # Additional flags for sshd. I thought recent commits to rc.conf had been to disable daemons by default, so that /etc/rc.conf would show the admin the daemons that had been explicitly turned on? This reverses that behaviour. How about this patch to src/release/sysinstall/config.c instead? --- config.c.old Sun Sep 3 13:33:30 2000 +++ config.c Sun Sep 3 13:34:06 2000 @@ -390,7 +390,8 @@ fprintf(rcSite, "# Enable network daemons for user convenience.\n"); fprintf(rcSite, "inetd_enable=\"YES\"\n"); fprintf(rcSite, "portmap_enable=\"YES\"\n"); - fprintf(rcSite, "sendmail_enable=\"YES\"\n\b"); + fprintf(rcSite, "sendmail_enable=\"YES\"\n"); + fprintf(rcSite, "sshd_enable=\"YES\"\n\b"); } /* Now do variable substitutions */ N -- Internet connection, $19.95 a month. Computer, $799.95. Modem, $149.95. Telephone line, $24.95 a month. Software, free. USENET transmission, hundreds if not thousands of dollars. Thinking before posting, priceless. Somethings in life you can't buy. For everything else, there's MasterCard. -- Graham Reed, in the Scary Devil Monastery To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message