🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80149

Re: inncheck complaining about file permissions.

#80149
From: Ralf Döblitz
Date: Sat, 21 Feb 2009 13:54
24 lines
2901 bytes
Russ Allbery <rra@stanford.edu> wrote:
> jeff@litech.org (Jeffrey M. Vinocur) writes:
> 
>> Well, I think he has a point -- I don't know if inncheck is
>> sophisticated enough to do this sort of thing, but in principle I think
>> it would be nice to have it accept a variety of reasonable options for
>> permissions.  Certainly one can make a good case for a config where
>> files outside of db, run, spool, and tmp are readonly for the news user.
>> Or for a config where nearly everything is no access for non-news users.
> 
> It really needs to accept a permission range for each file instead of a
> specific set of permissions that it wants, I think.  It's a bit fiddly to
> implement that due to the way that permissions are encoded.

It shouldn't be very difficult. Mask out don't-care-bits by bitwise AND,
and compare for bits that must be set. Mask out by bitwise OR and
compare for bits that must be unset.

Ralf
-- 
Ralf Döblitz   *   Schapenstraße 6   *   38104 Braunschweig   *   Germany
Phone: +49-531-2361223   Fax: +49-531-2361224  mailto:doeblitz@doeblitz.net
Homepage: http://www.escape.de/users/selene/
Mit UTF-8 kann man gleichzeitig äöüßÄÖÜæœłø‱¼½¾¤¹²³¢€£¥¶§¬÷×±©®™¡¿ verwenden…
Technical Details
Message-ID: <gnp13f$6ve$3@msgid.netzverwaltung.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!uucp.gnuu.de!doeblitz.net!not-for-mail
References: <slrngo2sg3.380.steve@news.mixmin.net> <gnj1bp$lhr$1@news.trigofacile.com> <gnlb1b$sgn$1@aux.snarked.org> <gnlkqh$er9$1@news.trigofacile.com> <gnnlcd$r5o$1@puck.litech.org> <87ocwwy1n8.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <gnp13f$6ve$3@msgid.netzverwaltung.net>
Subject: Re: inncheck complaining about file permissions.
Date: Sat, 21 Feb 2009 13:54:55 +0000
From: Ralf Döblitz <doeblitz@doeblitz.net>
References: <slrngo2sg3.380.steve@news.mixmin.net> <gnj1bp$lhr$1@news.trigofacile.com> <gnlb1b$sgn$1@aux.snarked.org> <gnlkqh$er9$1@news.trigofacile.com> <gnnlcd$r5o$1@puck.litech.org> <87ocwwy1n8.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!uucp.gnuu.de!doeblitz.net!not-for-mail
Newsgroups: news.software.nntp
Organization: private site in Braunschweig, Germany
Lines: 24
NNTP-Posting-Host: selene.escape.de
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: selene.doeblitz.net 1235224495 7150 194.120.234.83 (21 Feb 2009
X-Complaints-To: usenet@selene.doeblitz.net
NNTP-Posting-Date: Sat, 21 Feb 2009 13:54:55 +0000 (UTC)
Cancel-Lock: sha1:/18Es3hBoKPCPHGqNgEoOWVNDaQ=
Mail-Copies-To: nobody
X-Face: MTa[OP$pr;
 PqMc)e|d9BmnYq|Ir0`Ijj)kNr"C:9lS:bjC1P`Y>eWC41xS,XF96GoZH8WOl
 ^L#i6KSohA`[`_P->X=Q|g?{H{B):V5>&z"M>njIRGN:5"VBu,OLOe%v6\{@iS
X-Alignment: Lawful Evil
X-No-Archive: Yes
X-Archive: http:/www.netzverwaltung.net/archive/_outgoing/
User-Agent: tin/1.9.2-20070201 ("Dalaruan") (UNIX) (Linux/2.4.27-rd-p3 (i686))