Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Sep 2000 13:35:09 +0100
From:      Nik Clayton <nik@freebsd.org>
To:        Kris Kennaway <kris@FreeBSD.org>
Cc:        arch@freebsd.org
Subject:   Re: Enabling sshd by default
Message-ID:  <20000903133508.A84865@canyon.nothing-going-on.org>
In-Reply-To: <Pine.BSF.4.21.0009012116200.76245-100000@freefall.freebsd.org>; from kris@FreeBSD.org on Fri, Sep 01, 2000 at 09:22:55PM -0700
References:  <Pine.BSF.4.21.0009012116200.76245-100000@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000903133508.A84865>