Thread View: news.software.nntp
2 messages
2 total messages
Started by Patrick Bonvanie
Tue, 28 Jan 1997 00:00
INN + Cron
Author: Patrick Bonvanie
Date: Tue, 28 Jan 1997 00:00
Date: Tue, 28 Jan 1997 00:00
20 lines
1395 bytes
1395 bytes
Hello All, Maybe this is a stupid question, but anyway. I am running INND as a newsserver. This runs fine (since i finally sorted it out pffew). 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 ? Thanks in advance, Patrick Bonvanie
Re: INN + Cron
Author: Gary Palmer
Date: Tue, 28 Jan 1997 00:00
Date: Tue, 28 Jan 1997 00:00
33 lines
1916 bytes
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
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