🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86862

Re: news.notice

#86862
From: Feliks Tofund
Date: Sat, 04 Jul 2015 20:48
61 lines
3018 bytes
Am 01.07.2015 um 10:55 schrieb Avon:
> On Wed, 01 Jul 2015 07:56:33 +0000, Avon wrote:
> 
> I did create a news.notice in /var/log and chown syslog:adm
> 
> This worked and news events started to flow to the file.
> 
> I then tried chown syslog:news /var/log/news/news.notice
> 
> This also worked!
> 
> I then ran news.daily and it happily filed the current files into /old
> and best of all continued to honour a fresh news.notice with the same 
> syslog:news permissions.
> 
> So it does seem to be related to file ownership which is something I saw 
> noted in Richards Debian bug reports.
> 
> If I stick with chown news:news /var/log/news/news.notice it fails as 
> before.
> 
> I'll keep prodding but I may **fingers crossed** be out of the woods with 
> this issue.
> 
> Best, Paul


The problem is file ownership and access rights.
When the INN2 logrotator moves the logfiles ant creates new empty ones
it may be that after then syslog cannot write to them any more.

I have
-rw-rw---- 1 news adm        0 Jul  4 04:18 news.crit
-rw-rw---- 1 news adm      148 Jul  4 18:28 news.err
-rw-rw---- 1 news adm  2890647 Jul  4 22:38 news.notice

So user news can read and write and group adm for the syslog system to
read and write.

Additionally in /etc/rsyslog.d/50-default.conf

#
# Logging for INN news system.
#
$FileCreateMode 0666
news.crit                       /var/log/news/news.crit
news.err                        /var/log/news/news.err
news.notice                     -/var/log/news/news.notice
$FileCreateMode 0640


The 2 $FileCreateMode lines may be are not needed, it is from my tries
to make both rsyslog and inn2 have nicely access to the logs.

Feliks
http://www.news.datemas.de




Technical Details
Message-ID: <mn9gqd$q8e$1@news.datemas.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <mmntvm$6jm$1@speranza.aioe.org> <mmref3$8u8$1@news.trigofacile.com> <mn06fh$gp5$1@speranza.aioe.org> <mn09uq$pka$1@speranza.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <mn9gqd$q8e$1@news.datemas.de>
Subject: Re: news.notice
Date: Sat, 4 Jul 2015 22:48:09 +0200
From: Feliks Tofund <feliks@tofund.net>
References: <mmntvm$6jm$1@speranza.aioe.org> <mmref3$8u8$1@news.trigofacile.com> <mn06fh$gp5$1@speranza.aioe.org> <mn09uq$pka$1@speranza.aioe.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.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: Datemas.de http://www.news.datemas.de
Lines: 59
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: f4anHJz6+HEN+afqd/3RfCj01614oQbp8nImaPO5yjd3GcyAp2G4ee5YbYS5HwcbsPTecJGFosUiF1HwMQNgsBOrkCiqDsziidBznNixP6LcWmkzQS/yw7wpXmQNFFyH25vFXM26f2RK5JKzrYpY3khLYK8k6tG2tZ3A0w9+1bCidc/a1YSIAg3D+3RcowLi
X-Complaints-To: abuse@datemas.de
NNTP-Posting-Date: Sat, 4 Jul 2015 20:48:13 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101
 Thunderbird/38.0.1
In-Reply-To: <mn09uq$pka$1@speranza.aioe.org>
X-Enigmail-Draft-Status: N1110
X-Received-Body-CRC: 1556416845
X-Received-Bytes: 2959