Article View: news.software.readers
Article #221Re: Two queries regarding C-News (one of which also hits rn)
From: Henry Spencer
Date: Sun, 30 Jun 1991 23:40
Date: Sun, 30 Jun 1991 23:40
45 lines
3369 bytes
3369 bytes
In article <1991Jun29.104655.11340@panix.uucp> alexis@panix.uucp (Alexis Rosen) writes:
>>And the effort *is* substantial, because those "lines to do appropriate
>>chowns and chmods" are Unix-version-dependent and need to be configurable
>>in several ways. We're also unhappy at the thought of the sheer number
>>of files that would need to have such lines sprinkled into them.
>
>Would you please explain this? I'm willing to be convinced but I don't see
>how this can be. 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".
>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.
>...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.
>While I'm discussing scripts, on A/UX addgroups fails to figure out the name
>of the creator, if a group is created locally. That's because $USER isn't
>defined. But $LOGNAME does. I'm not sure but I think some other unixes have
>this too. If so, could you use "${USER-${LOGNAME-unknown}}" instead...
Actually, for some time I've been thinking that that mail is kind of
superfluous, so I may delete the mailed notice entirely. However, you
are correct that hitting LOGNAME as well is probably a good idea; will
fix. (The creator name is still used for active.times.) (Sure would
be nice if there were a portable way of determining the login name...)
--
Lightweight protocols? TCP/IP *is* | Henry Spencer @ U of Toronto Zoology
lightweight already; just look at OSI. | henry@zoo.toronto.edu utzoo!henry
Technical Details
Message-ID:
<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!math.fu-berlin.de!ox.com!caen!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!news-server.csri.toronto.edu!utgpu!utzoo!henryReferences:
<1991Jun27.201257.29111@zoo.toronto.edu> <1991Jun28.084515.29919@panix.uucp> <1991Jun28.170745.6774@zoo.toronto.edu> <1991Jun29.104655.11340@panix.uucp>Show Full Headers
Complete Article Headers
Message-ID: <1991Jun30.234027.19310@zoo.toronto.edu> Subject: Re: Two queries regarding C-News (one of which also hits rn) Date: Sun, 30 Jun 1991 23:40:27 +0000 From: henry@zoo.toronto.edu (Henry Spencer) References: <1991Jun27.201257.29111@zoo.toronto.edu> <1991Jun28.084515.29919@panix.uucp> <1991Jun28.170745.6774@zoo.toronto.edu> <1991Jun29.104655.11340@panix.uucp> 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!math.fu-berlin.de!ox.com!caen!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!news-server.csri.toronto.edu!utgpu!utzoo!henry Newsgroups: news.software.b,news.software.readers Organization: U of Toronto Zoology Lines: 45