Thread View: news.software.nntp
5 messages
5 total messages
Started by Avon
Sat, 13 Jun 2015 21:53
inncheck results
Author: Avon
Date: Sat, 13 Jun 2015 21:53
Date: Sat, 13 Jun 2015 21:53
169 lines
8693 bytes
8693 bytes
How much of this do I need to act on / is a cause for actual concern? I ask as I have read on the INN pages a comment that inncheck is overly precious about permissions etc. and not to be too concerned. Best, Paul --- inncheck -a -v -f --pedantic --perm defined(@array) is deprecated at /usr/lib/news/bin/inncheck line 1033. (Maybe you should just omit the defined()?) 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... # incoming.conf:0: can't open Permission denied Looking at /etc/news/inn.conf... Looking at /etc/news/innfeed.conf... # innfeed.conf:0: can't open Permission denied Looking at /etc/news/moderators... Looking at /etc/news/newsfeeds... ME, controlchan!, innfeed!, aioe, done. Looking at /etc/news/nntpsend.ctl... Looking at /etc/news/passwd.nntp... # passwd.nntp:0: can't open Permission denied Looking at /etc/news/readers.conf... Looking at /etc/news/storage.conf... # /var/spool/news/archive:0: owned by news, should be root chown root /var/spool/news/archive # /var/spool/news/archive:0: in group news, should be root chgrp root /var/spool/news/archive # /var/spool/news/incoming/bad:0: owned by news, should be root chown root /var/spool/news/incoming/bad # /var/spool/news/incoming/bad:0: in group news, should be root chgrp root /var/spool/news/incoming/bad # /var/spool/news/outgoing:0: owned by news, should be root chown root /var/spool/news/outgoing # /var/spool/news/outgoing:0: in group news, should be root chgrp root /var/spool/news/outgoing # /var/log/news:0: owned by news, should be root chown root /var/log/news # /var/log/news:0: in group news, should be root chgrp root /var/log/news # /var/log/news/OLD:0: owned by news, should be root chown root /var/log/news/OLD # /var/log/news/OLD:0: in group news, should be root chgrp root /var/log/news/OLD # /var/spool/news/incoming/tmp:0: owned by news, should be root chown root /var/spool/news/incoming/tmp # /var/spool/news/incoming/tmp:0: in group news, should be root chgrp root /var/spool/news/incoming/tmp # /var/spool/news/articles:0: owned by news, should be root chown root /var/spool/news/articles # /var/spool/news/articles:0: in group news, should be root chgrp root /var/spool/news/articles # /var/spool/news/incoming:0: owned by news, should be root chown root /var/spool/news/incoming # /var/spool/news/incoming:0: in group news, should be root chgrp root /var/spool/news/incoming # /var/run/news:0: owned by news, should be root chown root /var/run/news # /var/run/news:0: in group news, should be root chgrp root /var/run/news # /usr/lib/news/bin/innbind:0: mode 4754, should be between 4500 and 4550 chmod 4550 /usr/lib/news/bin/innbind # /usr/lib/news/bin/rnews:0: owned by news, should be root chown root /usr/lib/news/bin/rnews # /usr/lib/news/bin/rnews:0: mode 4755, should be between 500 and 500 chmod 500 /usr/lib/news/bin/rnews # /usr/lib/news/bin/nnrpd:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/nnrpd # /usr/lib/news/bin/rc.news:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/rc.news # /usr/lib/news/bin/inews:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/inews # /usr/lib/news/bin/innd:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/innd # /var/lib/news/history:0: owned by news, should be root chown root /var/lib/news/history # /var/lib/news/history:0: in group news, should be root chgrp root /var/lib/news/history # /usr/lib/news/bin/ctlinnd:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/ctlinnd # /usr/lib/news/bin/expire:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/expire # /usr/lib/news/bin/expirerm:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/expirerm # /usr/lib/news/bin/inncheck:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/inncheck # /usr/lib/news/bin/innstat:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/innstat # /usr/lib/news/bin/innwatch:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/innwatch # /usr/lib/news/bin/makehistory:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/makehistory # /usr/lib/news/bin/news.daily:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/news.daily # /usr/lib/news/bin/overchan:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/overchan # /usr/lib/news/bin/prunehistory:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/prunehistory # /usr/lib/news/bin/scanlogs:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/scanlogs # /usr/lib/news/bin/tally.control:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/tally.control # /usr/lib/news/bin/writelog:0: mode 755, should be between 500 and 550 chmod 550 /usr/lib/news/bin/writelog # /usr/lib/news/bin/archive:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/archive # /usr/lib/news/bin/batcher:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/batcher # /usr/lib/news/bin/buffchan:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/buffchan # /usr/lib/news/bin/convdate:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/convdate # /usr/lib/news/bin/cvtbatch:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/cvtbatch # /usr/lib/news/bin/filechan:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/filechan # /usr/lib/news/bin/getlist:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/getlist # /usr/lib/news/bin/grephistory:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/grephistory # /usr/lib/news/bin/innconfval:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/innconfval # /usr/lib/news/bin/innxmit:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/innxmit # /usr/lib/news/bin/nntpget:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/nntpget # /usr/lib/news/bin/nntpsend:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/nntpsend # /usr/lib/news/bin/sendxbatches:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/sendxbatches # /usr/lib/news/bin/send-ihave:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/send-ihave # /usr/lib/news/bin/send-nntp:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/send-nntp # /usr/lib/news/bin/send-uucp:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/send-uucp # /usr/lib/news/bin/shlock:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/shlock # /usr/lib/news/bin/shrinkfile:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/shrinkfile # /usr/lib/news/bin/rnews.libexec/bunbatch:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/rnews.libexec/bunbatch # /usr/lib/news/bin/rnews.libexec/c7unbatch:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/rnews.libexec/c7unbatch # /usr/lib/news/bin/rnews.libexec/decode:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/rnews.libexec/decode # /usr/lib/news/bin/rnews.libexec/encode:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/rnews.libexec/encode # /usr/lib/news/bin/rnews.libexec/gunbatch:0: mode 755, should be between 500 and 555 chmod 555 /usr/lib/news/bin/rnews.libexec/gunbatch
Re: inncheck results
Author: Julien ÉLIE
Date: Sun, 14 Jun 2015 12:49
Date: Sun, 14 Jun 2015 12:49
50 lines
2821 bytes
2821 bytes
Hi Paul,
> defined(@array) is deprecated at /usr/lib/news/bin/inncheck line 1033.
> (Maybe you should just omit the defined()?)
FYI, it was fixed in INN 2.5.4.
> Looking at /etc/news/incoming.conf...
> # incoming.conf:0: can't open Permission denied
> Looking at /etc/news/innfeed.conf...
> # innfeed.conf:0: can't open Permission denied
> Looking at /etc/news/passwd.nntp...
> # passwd.nntp:0: can't open Permission denied
I believe these ones are a problem. The news user should have access to them.
inncheck allows read+write for the user and the group (660). Just be sure that they are not world-readable as they can contain passwords.
I personally have 640 (news/news) for these files.
On systems like Debian, they are 640 (root/news).
Maybe your news user does not belong to the news group?
> # /var/spool/news/incoming/bad:0: owned by news, should be root
> chown root /var/spool/news/incoming/bad
> # /var/spool/news/incoming/bad:0: in group news, should be root
> chgrp root /var/spool/news/incoming/bad
This suggestion is wrong. Debian installs the directory as news/news, and it should remain news/news.
From a 2.5.3-3 install:
https://buildd.debian.org/status/fetch.php?pkg=inn2&arch=amd64&ver=2.5.3-3&stamp=1365407878
drwxrwxr-x news/news 0 2013-04-08 07:57 ./var/spool/news/incoming/bad/
I think the issue is still present in the latest 2.5.4 Debian build
as debian/patches/inncheck-permissions has not changed.
--
Julien ÉLIE
« – Et fais attention de ne pas te cogner aux arbres !
– …
– Le tout, c'est de faire attention de ne pas se cogner aux
Gaulois ! » (Astérix)
Re: inncheck results
Author: yamo'
Date: Wed, 17 Jun 2015 09:31
Date: Wed, 17 Jun 2015 09:31
40 lines
2067 bytes
2067 bytes
Hi, Avon a écrit le 13/06/2015 23:53 : > How much of this do I need to act on / is a cause for actual concern? > I ask as I have read on the INN pages a comment that inncheck is overly > precious about permissions etc. and not to be too concerned. First ignore the "should be". You can first look at something like : inncheck -a -v -f --pedantic --perm \ | grep denied -B 1 > Looking at /etc/news/incoming.conf... > # incoming.conf:0: can't open Permission denied > Looking at /etc/news/innfeed.conf... > # innfeed.conf:0: can't open Permission denied > Looking at /etc/news/passwd.nntp... > # passwd.nntp:0: can't open Permission denied -rw-r--r-- 1 root root /etc/news/incoming.conf -rw-r--r-- 1 root root /etc/news/innfeed.conf -rw-rw-r-- 1 root adm /etc/news/passwd.nntp And for Julien answers : # groups news news : news -- Stéphane
Re: inncheck results
Author: Avon
Date: Thu, 18 Jun 2015 08:06
Date: Thu, 18 Jun 2015 08:06
19 lines
1546 bytes
1546 bytes
On Sun, 14 Jun 2015 14:49:27 +0200, Julien ÉLIE wrote: > Hi Paul, > I believe these ones are a problem. The news user should have access to > them. > inncheck allows read+write for the user and the group (660). Just be > sure that they are not world-readable as they can contain passwords. > > I personally have 640 (news/news) for these files. > On systems like Debian, they are 640 (root/news). > > Maybe your news user does not belong to the news group? In the end I kept these as root:news but changed permissions to 644 as they were 640 and it did not work. Thanks for your help ;)
Re: inncheck results
Author: Avon
Date: Thu, 18 Jun 2015 08:10
Date: Thu, 18 Jun 2015 08:10
22 lines
1449 bytes
1449 bytes
On Wed, 17 Jun 2015 11:31:08 +0200, yamo' wrote: > First ignore the "should be". Thanks will do! > -rw-r--r-- 1 root root /etc/news/incoming.conf -rw-r--r-- 1 root root > /etc/news/innfeed.conf -rw-rw-r-- 1 root adm /etc/news/passwd.nntp Why root root for the first two and root adm for the last? it seems root:news works for all three if these are all set to 644 instead of 640 Thanks for your help :) > > And for Julien answers : # groups news news : news Sorry, lost me with this
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads