[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What should I do about bug #121621?



> Date: Fri, 28 Dec 2001 09:27:43 -0500 (EST)
> From: Jaldhar H. Vyas <jaldhar@debian.org>
> To: debian-mentors@lists.debian.org
> Subject: What should I do about bug #121621?
> Resent-Date: Fri, 28 Dec 2001 09:27:51 -0500 (EST)
> Resent-From: debian-mentors@lists.debian.org
> 
> webmin-status sets up a cro job for its user.  However there seems to be
> no good wa in Debian to remove a users crontab.  putting the cron jobs
> into /etc/cron.d seem like a possibility but then they would run as root
> not a particular user right?  What should I do?

The crontabs located in /etc/cron.d/ contain an extra field that
determines which user they run as.  For examples, check (randomly
selecting some from my own system) cricket, exim or mailman.

Alternatively, if you're in a cron that runs as root you can prefix each
statement with something like 'su - USERNAME -c command' (being aware that
each statement doesn't inherit information (such as pwd, environment, etc)
from the previous ones).

Dave

-- 

- Dave Baker  :  dave@dsb3.com  :  dave@devbrain.com  :  http://dsb3.com/ -
GnuPG:  1024D/D7BCA55D / 09CD D148 57DE 711E 6708  B772 0DD4 51D5 D7BC A55D

Attachment: pgp77j3fi20jR.pgp
Description: PGP signature


Reply to: