On Tue 06 Jan 1998, Hamish Moffatt wrote: > On Tue, Jan 06, 1998 at 10:57:48AM +0100, Paul Slootman wrote:
> > Why not require packages that need this level of control over cron jobs > > to register a user, so that a user-specific crontab (in > > /var/spool/cron/crontabs) can be installed, e.g. with "crontab -u > > package file" ? > > Because sometimes the jobs need to run as root. Quite often I suspect. > My package ipac (which started this) needs to run ipfwadm to configure > and reset the IP accounting rules, which requires root. Ah, that's quite a good reason. The mechanism involved in scanning for users' crontabs could be used to implement what Christian has proposed: using something like /usr/lib/cronjobs which would contain package-specific crontabs. In that scheme, is the user id under which the jobs are to be run configurable in any way? I'd says that not all such jobs would need to be run as root, and minimizing the number of root jobs helps to prevent security trouble. Paul Slootman -- Can you get your operating system fixed when you need it? Linux - the supportable operating system. http://www.debian.org/support.html home: [EMAIL PROTECTED] | work: [EMAIL PROTECTED] http://www.wurtel.demon.nl | Murphy Software, Enschede, the Netherlands -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .