Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 1999 08:39:18 -0800 (PST)
From:      patl@phoenix.volant.org
To:        Alexander Leidinger <A.Leidinger@WJPServer.CS.Uni-SB.de>
Cc:        freebsd-current@FreeBSD.ORG, olli@dorifer.heim3.tu-clausthal.de
Subject:   Re: "man" reads /etc/rc.conf?
Message-ID:  <ML-3.4.942251958.3403.patl@asimov>
In-Reply-To: <199911101457.PAA02453@work.net.local>

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




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