Article View: news.software.nntp
Article #81076Re: Logging failures
From: John F. Morse
Date: Sat, 23 May 2009 16:52
Date: Sat, 23 May 2009 16:52
85 lines
5232 bytes
5232 bytes
Ray Banana wrote:
> Thus spake "John F. Morse" <xanadu.bbs@example.invalid>
>
> [problems with log file permissions on Ubuntu using sysklogd]
>
>
>> The files are rotated, and the owner:group is indeed changed to
>> syslog:adm -- and -- the files are not emptied. New logging is simply
>> appended, causing the logs to grow.
>>
>
> I found the piece of code in the /etc/init.d/sysklogd startup script
> that's responsible for this:
>
> fix_log_ownership()
> {
> for l in `syslogd-listfiles -a`
> do
> chown ${USER}:adm $l
> done
> }
>
> As I changed "syslogd-listfiles -a" to also list the news.* log files
> (as does Ubuntu 9.04), these will be affected by this feature, too.
>
> After looking at the sysklogd changelog for the Ubuntu version, I get the
> impression that it is a long sequence of ugly hacks (and reverting them
> again) in a desperate attempt to make sysklogd run without root
> privileges, which does not work if you want your news.* logs handled
> and rotated by news.daily. Ubuntu's sysklogd opens all defined log files
> while it still has root privileges, disregarding their ownership. It
> subsequently drops root privileges and, by default, runs as user syslog,
> hence it fails to re-open the log files not writable by the syslog user
> upon receiving a SIGHUP, as it has dropped its root privileges after
> initializing. Doing a restart of sysklogd will work, as long as
> syslogd-listfiles -a does *not* list the news.* files, as sysklogd will
> start with root privileges, open all log files and drop
> privileges. Sending a SIGHUP to the syslogd process will however cause
> all logging to news.notice etc. to stop.
>
> So, if you would like to run INN on Ubuntu with news.daily doing all the
> reporting and log rotation, you should not use sysklogd, but syslog-ng
> or rsyslogd. You might prefer rsyslogd as the syntax of
> /etc/rsyslogd.conf is the same as for syslogd.conf, whereas syslog-ng
> uses a totally different logic and syntax (sources->filters->destinations).
>
>
>> Tonight I will install INN on the Optima11 box (Debian Lenny) and see
>> what it does.
>>
>
> On Debian, sysklogd runs as root and therefore these problems do not
> exist.
Thanks Ray.
The Optima11 server on Lenny is working fine now, peering with the
online Optima7.
I'll get with you in a couple of days about adding those full
hierarchies to port 433 to feed it for more testing, without disrupting
the port 119 feed to Optima7.
Right now I'm busy trying to configure NoCeM to stop the spam we had
Friday morning (well, actually "any" spam that it can catch).
Your feed, and reports from some of your reader users, say you were
clean of the spam. Did you add the spammer (usenetmonster.com) into
Cleanfeed, or did the NoCeM take care of all the spam?
I also need to contact CMU as it appears they have added a transit-2
server which I know nothing about and do not have entered into my
newsfeeds.conf file. So it is pounding nnrpd and failing because it has
no auth account.
If it isn't one thing, it's something else. ;-)
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Technical Details
Message-ID:
<gv99ke$3f0$1@optima7.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!transit4.hitnews.eu!feeder.news-service.com!feeder.motzarella.org!news.motzarella.org!optima7.xanadu-bbs.net!not-for-mailReferences:
<gts0rg$v7n$1@optima7.xanadu-bbs.net> <gu4ea9$ath$1@news.trigofacile.com> <gu6ksc$oq7$1@optima7.xanadu-bbs.net> <gu6uqv$1ap$1@news.trigofacile.com> <gu804a$4mb$1@optima7.xanadu-bbs.net> <gu8ggp$gic$1@news.trigofacile.com> <gu90j1$d21$1@optima7.xanadu-bbs.net> <gu9nvk$kse$1@news.trigofacile.com> <guc1rv$6qp$1@optima7.xanadu-bbs.net> <8063g6memf.fsf@banana.shacknet.nu> <guch30$aoq$1@optima7.xanadu-bbs.net> <80d4ae2k1j.fsf@banana.shacknet.nu> <gumema$ui2$1@optima7.xanadu-bbs.net> <80vdnzu827.fsf@banana.shacknet.nu> <guph24$oac$1@optima7.xanadu-bbs.net> <803ab3d2vg.fsf@banana.shacknet.nu> <guran2$7pi$1@optima7.xanadu-bbs.net> <804ovhp64z.fsf@banana.shacknet.nu>Show Full Headers
Complete Article Headers
Message-ID: <gv99ke$3f0$1@optima7.xanadu-bbs.net> Subject: Re: Logging failures Date: Sat, 23 May 2009 11:52:30 -0500 From: "John F. Morse" <xanadu.bbs@example.invalid> References: <gts0rg$v7n$1@optima7.xanadu-bbs.net> <gu4ea9$ath$1@news.trigofacile.com> <gu6ksc$oq7$1@optima7.xanadu-bbs.net> <gu6uqv$1ap$1@news.trigofacile.com> <gu804a$4mb$1@optima7.xanadu-bbs.net> <gu8ggp$gic$1@news.trigofacile.com> <gu90j1$d21$1@optima7.xanadu-bbs.net> <gu9nvk$kse$1@news.trigofacile.com> <guc1rv$6qp$1@optima7.xanadu-bbs.net> <8063g6memf.fsf@banana.shacknet.nu> <guch30$aoq$1@optima7.xanadu-bbs.net> <80d4ae2k1j.fsf@banana.shacknet.nu> <gumema$ui2$1@optima7.xanadu-bbs.net> <80vdnzu827.fsf@banana.shacknet.nu> <guph24$oac$1@optima7.xanadu-bbs.net> <803ab3d2vg.fsf@banana.shacknet.nu> <guran2$7pi$1@optima7.xanadu-bbs.net> <804ovhp64z.fsf@banana.shacknet.nu> 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!transit4.hitnews.eu!feeder.news-service.com!feeder.motzarella.org!news.motzarella.org!optima7.xanadu-bbs.net!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 85 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: optima7.xanadu-bbs.net 1243097550 3552 192.168.89.210 (23 May 2009 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Sat, 23 May 2009 16:52:30 +0000 (UTC) User-Agent: Thunderbird 2.0.0.21 (X11/20090318) In-Reply-To: <804ovhp64z.fsf@banana.shacknet.nu>