🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #14548

Re: INN + Cron

#14548
From: Gary Palmer
Date: Tue, 28 Jan 1997 00:00
33 lines
1916 bytes
In article <32EE3672.32B2@ncn.nl>,
	Patrick Bonvanie <anja@ncn.nl> writes:
> This message is more or less concerning the daily event and cron. In the
> sample cron file is an entry for the daily clean-up event. This entry
> switches to user news. (i.e. su news) Unfortunatly here it goes wrong,
> and it asks for a password. (i start the deamon from rc.local).
> How can i avoid this, without starting the deamon by hand as root ?
> I tryed taking out the "su news" then the event runs correctly but my
> history files all ending up with the wrong owner (root). I now run an
> event straight after it to fix this, but i dont think it is a good
> solution. Any one has any workaround this problem ?

Put the crontab in as the news users. At least some versions of cron
allow you to do:

crontab -e -u news

and then put in the lines you want. In my case:

root@news:~> crontab -u news -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.431 installed on Sat Jan  4 23:44:03 1997)
# (Cron version -- $Id: crontab.c,v 1.6 1996/08/05 00:50:02 pst Exp $)
00 5 * * *      /usr/local/news/bin/news.daily expireover delayrm
*/2 * * * *     /usr/local/news/bin/nntpsend
*/10 * * * *    /usr/local/news/bin/sendbatch +o gnsbr

No su's needed....

Gary

Technical Details
Message-ID: <5clha8$nop@news.webspan.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.mbox.zip!not-for-mail
References: <32EE3672.32B2@ncn.nl>

Show Full Headers
Complete Article Headers
Message-ID: <5clha8$nop@news.webspan.net>
Subject: Re: INN + Cron
Date: Tue, 28 Jan 1997 00:00:00 +0000
From: gpalmer@webspan.net (Gary Palmer)
References: <32EE3672.32B2@ncn.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 212782355
Sender: gpalmer@mutara.noc.webspan.net
Content-type: text/plain; charset=us-ascii
Organization: WebSpan Inc., New Jersey
Mime-version: 1.0
Newsgroups: news.software.nntp