> Date: Fri, 28 Dec 2001 09:27:43 -0500 (EST) > From: Jaldhar H. Vyas <[EMAIL PROTECTED]> > To: [email protected] > Subject: What should I do about bug #121621? > Resent-Date: Fri, 28 Dec 2001 09:27:51 -0500 (EST) > Resent-From: [email protected] > > 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 : [EMAIL PROTECTED] : [EMAIL PROTECTED] : http://dsb3.com/ - GnuPG: 1024D/D7BCA55D / 09CD D148 57DE 711E 6708 B772 0DD4 51D5 D7BC A55D
pgpc2VTHmMsyv.pgp
Description: PGP signature

