From owner-freebsd-current Wed Nov 10 8:40:44 1999 Delivered-To: freebsd-current@freebsd.org Received: from phoenix.volant.org (phoenix.volant.org [205.179.79.193]) by hub.freebsd.org (Postfix) with ESMTP id EB08F14C57 for ; Wed, 10 Nov 1999 08:40:39 -0800 (PST) (envelope-from patl@phoenix.volant.org) Received: from asimov.phoenix.volant.org ([205.179.79.65]) by phoenix.volant.org with smtp (Exim 1.92 #8) id 11lamK-00023v-00; Wed, 10 Nov 1999 08:39:24 -0800 Received: from localhost by asimov.phoenix.volant.org (SMI-8.6/SMI-SVR4) id IAA27248; Wed, 10 Nov 1999 08:39:18 -0800 Date: Wed, 10 Nov 1999 08:39:18 -0800 (PST) From: patl@phoenix.volant.org Reply-To: patl@phoenix.volant.org Subject: Re: "man" reads /etc/rc.conf? To: Alexander Leidinger Cc: freebsd-current@FreeBSD.ORG, olli@dorifer.heim3.tu-clausthal.de In-Reply-To: <199911101457.PAA02453@work.net.local> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 10-Nov-99 at 06:59, Alexander Leidinger (A.Leidinger@WJPServer.CS.Uni-SB= .de) wrote: > On 10 Nov, Oliver Fromme wrote: >=20 > > Using command substitution in /etc/rc.conf{,.local} is NOT > > officially supported. I think it should have always been > > clear that there should _only_ be plain variable assignments. >=20 > But with i4b you have to specify a username-password pair in rc.conf > (spppconfig_isp0) and I didn=B4t want to show it to every user (rc.conf i= s > u+rw,g+r,o+r for reasons you mention). >=20 > > That's probably just because you never know which programs > > try to read them. >=20 > Ok, so we (root of machine xxx) have either a security hole > (dial-in-passwd visible to everyone) or we have to forget the > recommended way of doing it. It looks to me as though the recommended way of doing it needs to be changed. How about putting the sppp setup in a separate script in /usr/local/etc/rc.d ? Or, put the script in /etc/isdn and add that directory to the local_startups variable in rc.conf ? > > > Is this just my system or is man really reading rc.conf(.local)? > >=20 > > I think that's perfectly legal. >=20 > Yes, but is it necessary? The whole rc setup isn't 'necessary'. But it's damned useful and convienient. And so is the ability for arbitrary programs and scripts to read and easily parse rc.conf to obtain system wide defaults. -Pat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message