PDA

View Full Version : Trying to make a root crontab, not working....



arkaine23
07-07-2003, 02:51 PM
I ran crontab -e as root and scheduled some scripts to run periodically, but it didn't save. I'm chrooted into an uncompressed filesystem that's ready for remastering.

It says that there's no root crontab and that its saving, but then says no changes were made to crontab. And when I run crontab -e a second time, I get back to a blank crontab.

Is there something I'm missing here? Should I make a crontab for the knoppix user and "# * * * * su -c root /my/script" in order to run the scripts as root? One of my scripts has to be run as root or it won't work. Maybe I could just setuid that script and just run it as knoppix?

cYmen
07-08-2003, 08:10 AM
simply edit /etc/crontab