Article View: news.software.readers
Article #215247Re: [slrn] + [leafnode] a few questions
From: andrew
Date: Wed, 23 Jan 2008 09:23
Date: Wed, 23 Jan 2008 09:23
34 lines
2838 bytes
2838 bytes
On 2008-01-22, andrew <andrew@ilium.invalid> wrote:
> On 2008-01-22, Whiskers <catwheezel@operamail.com> wrote:
>
> [...]
>
>> Fetchnews can be run as root, and if you are doing it manually it may be
>> easier to su or sudo to root rather than to news; but the danger of
>> running it as root is that your entire system becomes vulnerable while you
>> are doing it. Running it as news only exposes the system to things that
>> the user news is permitted to do - which shouldn't be much, and nothing at
>> all beyond what is needed for posting and fetching usenet posts and
>> maintaining the 'spool'.
>
> Thanks for this very clear explanation. I guess at the heart of my
> problem is that I cannot actually get 'news' to do his / her cron
> work :-) There is most definitly a user called news, and this user
> owns /var/spool/news and everything in it but will not respond to
> cron.
Can I confess to being totally stupid, here on news.software.readers?
I have found the simple error I made with the following, run as
'news':
15 * * * * /usr/sbin/fetchnews -vvv >/home/andrew/.fetchnewslog 2>&1
The file .fetchnewslog is owned by me (andrew) and permissions were
600 so the user 'news' could not access it at all. And so the whole
cron job failed (this is 2.3.3). Once I set permissions to 644 all was
well. Unbelievable.
Andrew
--
http://www.andrews-corner.org
Technical Details
Message-ID:
<20080123201303@ilium.andrews-corner.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<20080120233751@ilium.andrews-corner.org> <slrnfp94f6.t2u.pjr@pjr.gotdns.org> <20080122094000@ilium.andrews-corner.org> <20080122094912@usenet.piggo.com> <20080122205828@ilium.andrews-corner.org> <20080122104820.1B1C.2.NOFFLE@ID-107770.user.individual.net> <20080123091803@ilium.andrews-corner.org>Show Full Headers
Complete Article Headers
Message-ID: <20080123201303@ilium.andrews-corner.org> Subject: Re: [slrn] + [leafnode] a few questions Date: Wed, 23 Jan 2008 20:23:12 +1100 From: andrew <andrew@ilium.invalid> References: <20080120233751@ilium.andrews-corner.org> <slrnfp94f6.t2u.pjr@pjr.gotdns.org> <20080122094000@ilium.andrews-corner.org> <20080122094912@usenet.piggo.com> <20080122205828@ilium.andrews-corner.org> <20080122104820.1B1C.2.NOFFLE@ID-107770.user.individual.net> <20080123091803@ilium.andrews-corner.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: slrn Mafia Lines: 34 Reply-To: usenet.andrew@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net OV7DB0IJSUpTQrljEL69dQr9MIdp+E47J6GMm0TCzoUnhhAteJ X-Orig-Path: ilium.andrews-corner.org!not-for-mail Cancel-Lock: sha1:2WEmVJTOk8eFymomPZBm1EGrCdE= X-NNTP-Proxy: Leafnode-2 (http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/) User-Agent: slrn/pre0.9.9-82 (Linux)