Article View: news.software.nntp
Article #80135Re: inncheck complaining about file permissions.
From: D. Stussy
Date: Fri, 20 Feb 2009 04:19
Date: Fri, 20 Feb 2009 04:19
57 lines
3974 bytes
3974 bytes
"Julien ΓLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gnj1bp$lhr$1@news.trigofacile.com... > > Can we also fix the UNIX file permissions check? It complains if the > > permssions are not "660". However, "440" (read-only) is just as valid for > > many of the files (binaries, ~news/etc, etc.). It should not complain as > > INN never writes to those. "640" or "460" (why?) are just as possible, and > > world-readable for some files might be OK (but discouraged). > > Who complains? Do you have an example of such a file? # /var/lib/news/bin/inncheck /var/lib/news/etc/control.ctl:0: mode 440, should be 644 /var/lib/news/etc/expire.ctl:0: mode 440, should be 644 /var/lib/news/etc/incoming.conf:0: mode 440, should be 640 /var/lib/news/etc/inn.conf:0: mode 444, should be 644 /var/lib/news/etc/moderators:0: mode 444, should be 644 /var/lib/news/etc/newsfeeds:0: mode 440, should be 644 /var/lib/news/etc/overview.fmt:0: mode 440, should be 644 /var/lib/news/etc/passwd.nntp:0: mode 440, should be 640 /var/lib/news/etc/readers.conf:0: mode 440, should be 644 # ls -al ~news/etc total 256 dr-xr-xr-x 3 newsserv news 4096 Feb 13 00:00 . dr-xr-x--x 8 newsserv news 4096 Feb 18 08:09 .. -r--r----- 1 newsserv news 96612 Feb 13 00:00 control.ctl -r--r----- 1 newsserv news 6982 Feb 13 00:00 cycbuff.conf -r--r----- 1 newsserv news 12 Feb 13 00:00 distrib.pats -r--r----- 1 newsserv news 14 Feb 13 00:00 expire.ctl -r--r----- 1 newsserv news 1951 Feb 13 00:00 incoming.conf -r--r--r-- 1 newsserv news 2298 Feb 13 00:00 inn.conf -r--r----- 1 newsserv news 2621 Feb 13 00:00 innfeed.conf -r--r----- 1 newsserv news 72291 Feb 13 00:00 innreport.conf -r--r--r-- 1 newsserv news 622 Feb 13 00:00 moderators -r--r----- 1 newsserv news 550 Feb 13 00:00 news2mail.conf -r--r----- 1 newsserv news 4829 Feb 13 00:00 newsfeeds -r--r----- 1 newsserv news 100 Feb 13 00:00 nocem.ctl -r--r----- 1 newsserv news 340 Dec 28 21:50 overview.fmt -r--r----- 1 newsserv news 0 Feb 4 08:34 passwd.nntp dr-xr-x--- 2 newsserv news 4096 Feb 6 22:22 pgp -r--r----- 1 newsserv news 1146 Feb 13 00:00 readers.conf -r--r----- 1 newsserv news 118 Feb 13 00:00 sasl.conf -r--r----- 1 newsserv news 527 Feb 13 00:00 storage.conf -r--r----- 1 newsserv news 73 Feb 13 00:00 subscriptions It also complains that some things should be permitted "read-others" when they aren't. I have found that only inn.conf need be readable by others (i.e. the mail server user - when a mail->news gateway is used). My moderators file is read-others so the web server may display the moderators file, but that's not required either. No difference if pedantic mode is used.
Technical Details
Message-ID:
<gnlb1b$sgn$1@aux.snarked.org>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!newsfeed0.kamp.net!newsfeed.kamp.net!news.hub.org!news.snarked.org!not-for-mailReferences:
<slrngo2sg3.380.steve@news.mixmin.net> <gnhuq7$g98$1@news.trigofacile.com> <gnidgn$41u$1@aux.snarked.org> <gnj1bp$lhr$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <gnlb1b$sgn$1@aux.snarked.org> Subject: Re: inncheck complaining about file permissions. Date: Thu, 19 Feb 2009 20:19:59 -0800 From: "D. Stussy" <spam@bde-arc.ampr.org> References: <slrngo2sg3.380.steve@news.mixmin.net> <gnhuq7$g98$1@news.trigofacile.com> <gnidgn$41u$1@aux.snarked.org> <gnj1bp$lhr$1@news.trigofacile.com> 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!newsfeed0.kamp.net!newsfeed.kamp.net!news.hub.org!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 57 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: pool-71-106-211-188.lsanca.dsl-w.verizon.net X-Trace: aux.snarked.org 1235103596 29207 71.106.211.188 (20 Feb 2009 04:19:56 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Fri, 20 Feb 2009 04:19:56 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478