Article View: news.software.nntp
Article #80146Re: inncheck complaining about file permissions.
From: D. Stussy
Date: Sat, 21 Feb 2009 06:35
Date: Sat, 21 Feb 2009 06:35
62 lines
4180 bytes
4180 bytes
"Julien ΓLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gnlkqh$er9$1@news.trigofacile.com... > >> 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 > > During "make install": > ../support/install-sh -c -o news -g news -m 0644 -B .OLD control.ctl /home/news/etc/control.ctl > > > /var/lib/news/etc/incoming.conf:0: mode 440, should be 640 > > During "make install": > ../support/install-sh -c -o news -g news -m 0640 -B .OLD incoming.conf /home/news/etc/incoming.conf > > The rights are correct (for both STABLE and CURRENT). > > You probably did not install INN from the official ftp.isc.org release. > Please check with the maintainer of the package you are using with your > distribution. Actually, I have, but of course, I've modified the files to account for my peering configuration. I saw NO REASON why they should remain writable by the news user, so as a security precaution, I changed the permissions to read-only. However, that doesn't answer the question of why inncheck thinks that these must be writable files? > > 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). > > If you want to use different rights, please do and do not follow what inncheck > writes regarding permissions. Inncheck should be complaining about UNSAFE permissions (e.g. "write-others"), not about permissions that work, are equally [or more] secure, but are different than the installation script. Why would ~news/etc/control.ctl NEED to be read-others? Why would ~news/etc/incoming.conf NEED to be write-owner? INN doesn't update the file - ever. ------ Mr. Allbery's comment: As far as a permission check goes, use a mask before comparison. For example: Given: A data file that should be read-owner and read-group. Mask (bitwise and) the UNIX permissions with 0553, then compare to 0440. This would ignore the write-owner, write-group, and read-others bits. It would require read-owner and read-group, while flagging execute-any, write-others, and any special bits (setuid, setgid, etc). I assumed no extended POSIX ACLs. I don't see why those would be needed at all for the news server, but they may be enabled for the filesystem.
Technical Details
Message-ID:
<gno7bj$qf0$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!feeder8.cambrium.nl!feed.tweaknews.nl!193.201.147.87.MISMATCH!news.astraweb.com!border2.a.newsrouter.astraweb.com!ramfeed-1.ams.xsnews.nl!feed.xsnews.nl!border-4.ams.xsnews.nl!news.osn.de!diablo2.news.osn.de!newsfeed.kamp.net!newsfeed.kamp.net!209.197.12.246.MISMATCH!nx02.iad.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!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> <gnlb1b$sgn$1@aux.snarked.org> <gnlkqh$er9$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <gno7bj$qf0$1@aux.snarked.org> Subject: Re: inncheck complaining about file permissions. Date: Fri, 20 Feb 2009 22:35:36 -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> <gnlb1b$sgn$1@aux.snarked.org> <gnlkqh$er9$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!feeder8.cambrium.nl!feed.tweaknews.nl!193.201.147.87.MISMATCH!news.astraweb.com!border2.a.newsrouter.astraweb.com!ramfeed-1.ams.xsnews.nl!feed.xsnews.nl!border-4.ams.xsnews.nl!news.osn.de!diablo2.news.osn.de!newsfeed.kamp.net!newsfeed.kamp.net!209.197.12.246.MISMATCH!nx02.iad.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 62 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 1235198132 27104 71.106.211.188 (21 Feb 2009 06:35:32 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Sat, 21 Feb 2009 06:35:32 +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