Article View: news.software.nntp
Article #82800Re: INN 2.5.1 Owner-Group different than 2.4.5
From: John F. Morse
Date: Fri, 12 Feb 2010 23:23
Date: Fri, 12 Feb 2010 23:23
129 lines
6015 bytes
6015 bytes
Hi Julien.
Julien ΓLIE wrote:
> Hi John,
>
>> Well, from what I can determine, there is still a bug if "inncheck
>> -v" fails when the owner:group is set to either root or news.
>
> Is inncheck failing on your Debian Squeeze?
As I posted, changing the owner:group made little difference as far as I
could tell.
But that was yesterday. Today it seems to be working fine (see below).
Someone must have broken in last night and edited something while I
slept. ;-)
>> INN doesn't like files in the news spool owned by a user other than
>> the news user.
>
> Note that /etc/news is not the news spool.
I know. So far there is no spool, yet (nothing inside
/var/spool/news/articles). Those other /var/spool/news files are all
news:news which is correct.
I'm still trying to get the server to run, which I believe it is doing
now, or at least without news.notice and syslog cranking out reams of
paper (well, that's a very old descriptive term). ;-)
I need to get it totally configured, including using ignore old articles
and xrefslave=true before I load it with articles, or the users will
grumble when their readers are out of sync. My own grumbling is
sufficient. ;-)
I wish there was a way to simply rsync the active, spool, history
database, etc., and quickly be done with it. There are over five million
articles on a 40 GB hard drive in some 18 cycbuffs on the production
reader server, and several thousand in tradspool. The drive still has
two 2GB cycbuffs remaining with no articles. This drive is the one that
had the errors a week ago, but has not failed since.
So I bought a new computer, which has a 160 GB hard drive, so there is
room to grow both the incoming peer feeds and retention. Its 2.4 GHz CPU
is much faster than the old 266 MHz CPU as well, which is currently
taking around 53 minutes for the nightly expiry.
I'm also wanting to experiment with CNFS block devices in place of
cycbuff files to see what the difference might be in speed. I've been
following the talk, but not sure if the inn2-lfs is still necessary for
cycbuffs over 2 GB. Just how large are large files?
The /etc/news configuration files are all root:root except passwd.nntp
which is root:news. Modes are different too, with 644 on all but
incoming.conf and passwd.nntp which are 640. I guess allowing news to
read is really all that is needed for these config files to work.
The problem may be incoming.conf which is 640 root:root. How is news
going to read this? It is 640 news:news on the 2.4.5 servers.
In the /usr/lib/news/bin directory, where user news runs programs,
everything is owned by root:root except innbind is root:news and rnews
is news:uucp and most everything is 755, including rnews (innbind is 754
with the sticky-bit set in the owners position -rwsr-xr--). With the
world having execute privileges, news can certainly run these files, but
so could anybody who gains access. The /usr/lib/news/bin directory is
drwxr-xr-x root:root.
I don't understand why the owner:group was changed from 2.4.x to 2.5.x,
but it looks like the permissions make everything work the same, except
for security.
Why there are read and execute flags set for the world is another
puzzle. Ideas?
> Note that inncheck is patched in the Debian package:
>
> http://patch-tracker.debian.org/patch/series/view/inn2/2.5.1-1/inncheck-permissions
>
>
> - local ($f, $m, $u, $g) = ( @_, $INN::Config::runasuser,
> $INN::Config::runasgroup);
> + local ($f, $m, $u, $g) = ( @_, 'root', 'root' );
>
My version is INN 2.5.1-5 which is newer than 2.5.1-1. ;-)
john@squeeze:/usr/lib/news/bin$ head inncheck
#! /usr/bin/perl -w
use lib '/usr/share/perl5'; use INN::Config;
## $Revision: 8501 $
## Sanity-check the configuration of an INN system
## by Brendan Kehoe <brendan@cygnus.com> and Rich $alz.
sub
checkperm
{
local ($f, $m, $u, $g) = ( @_, 'root', 'root' );
local (@sb, $owner, $group, $mode);
...
Looks good to me.
john@squeeze:/etc/news$ sudo /usr/lib/news/bin/inncheck -v
Looking at /var/lib/news/active...
Looking at /etc/news/control.ctl...
Looking at /etc/news/control.ctl.local...
Looking at /etc/news/expire.ctl...
Looking at /etc/news/incoming.conf...
Looking at /etc/news/inn.conf...
Looking at /etc/news/moderators...
Looking at /etc/news/newsfeeds...
ME, controlchan!, nocem!, innfeed!, optima11, inpaths!, done.
Looking at /etc/news/nntpsend.ctl...
Looking at /etc/news/passwd.nntp...
Looking at /etc/news/readers.conf...
--
John
When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID:
<hl4nt6$d7d$1@optima5.xanadu-bbs.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!weretis.net!feeder2.news.weretis.net!nntp.club.cc.cmu.edu!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mailReferences:
<hl2qud$srr$2@optima5.xanadu-bbs.net> <87d40apbfq.fsf@windlord.stanford.edu> <hl480b$8q7$1@optima5.xanadu-bbs.net> <hl4gbh$ckg$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <hl4nt6$d7d$1@optima5.xanadu-bbs.net> Subject: Re: INN 2.5.1 Owner-Group different than 2.4.5 Date: Fri, 12 Feb 2010 17:23:18 -0600 From: "John F. Morse" <john@example.invalid> References: <hl2qud$srr$2@optima5.xanadu-bbs.net> <87d40apbfq.fsf@windlord.stanford.edu> <hl480b$8q7$1@optima5.xanadu-bbs.net> <hl4gbh$ckg$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!weretis.net!feeder2.news.weretis.net!nntp.club.cc.cmu.edu!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 129 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: optima5.xanadu-bbs.net 1266016998 13549 192.168.89.210 (12 Feb 2010 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Fri, 12 Feb 2010 23:23:18 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: <hl4gbh$ckg$1@news.trigofacile.com> X-Enigmail-Version: 0.96.0