🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #270

Re: Two queries regarding C-News (one of which also hits rn)

#270
From: Alexis Rosen
Date: Wed, 03 Jul 1991 04:45
61 lines
3870 bytes
henry@zoo.toronto.edu (Henry Spencer) writes:
>alexis@panix.uucp (Alexis Rosen) writes:
>>[...] You already know about chown and chmod from the build script.
>
>We do... but plugging that information into a number of scripts is painful,
>because the existing configuration mechanisms aren't very suited to it.  The
>chances are good, in fact, that build is going to lose those queries, and
>the tiny bit of shell file that is so painfully generated from them, in favor
>of a couple of lines of instructions saying "create the following directories
>with the following ownerships and permissions".

That's a shame. If it already works why kill it? I'll take a wild guess and
say that there are systems this doesn't work with. Well, some systems don't
do lots of things, but for the vast majority that work fine with this, why not
leave it? Request that the user do stuff if the automatic actions fail.

>>Is there really a Unix where
>>chmod 644 active ; chown news active
>>won't do the trick? ...
>
>Yes.  In an off-the-shelf SunOS 3.2 (to name the example I have combat
>experience with; I'm sure there are more) chown is not even in the normal
>search path.

Right. I bumped into that myself just the other day in 4.1. But, you've already
learned thin in the build script. Yes I know you said it might go away, but
in the meantime you know what you need.

>>...how many such scripts are there? The only one I've ever run into on this
>>is delgroup. (There may be others that I've never messed up with.)
>
>The problem is, what do we tell the customer?  That *some* of the scripts
>are root-proofed and some aren't?  Different sysadmins use different things
>frequently; the only practical way is to promise either that *all* of them
>are root-proof or that *none* of them are.

I'd suggest that you don't tell anyone about the safety net at all, lest they
be encouraged to use it. But in a system which runs reasonably OK (I'm not
talking about a total botch that never runs correctly- that's beyond rescue
by a simple shell script fix), I'll bet delgroups and addgroups are called
20 times for each times something else is called. And only delgroups has this
problem.

>Actually, for some time I've been thinking that that mail is kind of
>superfluous, so I may delete the mailed notice entirely.

That's probably the best bet. I don't know why I didn't just do that...

BTW, while I'm playing mathew on the delgroups question :-), I don't think
it's an all-or-nothing isssue. Putting in a simple check-and-refusal if the
user isn't news would do the trick. And while I know there's no totally
portable way to do this, I suggest that you handle this the same way you
handle "spacefor" and "queuelen"- by providing a couple of known examples
and letting the admin figure the rest out. Keeps life simple for you, and
lets you use it in other places too.

---
Alexis Rosen
Owner/Sysadmin, PANIX Public Access Unix, NYC
alexis@panix.com
{cmcl2,apple}!panix!alexis
Technical Details
Message-ID: <1991Jul3.044557.13527@panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!cmcl2!panix!alexis
References: <1991Jun28.170745.6774@zoo.toronto.edu> <1991Jun29.104655.11340@panix.uucp> <1991Jun30.234027.19310@zoo.toronto.edu>

Show Full Headers
Complete Article Headers
Message-ID: <1991Jul3.044557.13527@panix.com>
Subject: Re: Two queries regarding C-News (one of which also hits rn)
Date: Wed, 03 Jul 1991 04:45:57 +0000
From: alexis@panix.com (Alexis Rosen)
References: <1991Jun28.170745.6774@zoo.toronto.edu> <1991Jun29.104655.11340@panix.uucp> <1991Jun30.234027.19310@zoo.toronto.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!cmcl2!panix!alexis
Newsgroups: news.software.b,news.software.readers
Organization: PANIX - Public Access Unix Systems of NY
Lines: 61