If I set cron job for a normal user instead of root, what account execute the scheduled jobs?
2 Answers
The user you added the cron job as.
-
2Though... were do you set the cron job? If it's in /etc/crontab or /etc/cron.d, you have to specify the user it runs as explicitly. But then you'd know, so Ignacio's answer is probably fully on the mark. Dec 11, 2010 at 14:50
Cron jobs in /etc/crontab and /etc/cron.d/ run as the user specified in the extra username field. Cron jobs in files in /var/spool/crontab/ (or your distro's equivalent) run as the user who inserted that crontab, usually the user for whom the file is named.