[KLUG Members] cron job ownership

Adam Williams members@kalamazoolinux.org
Sat, 28 Feb 2004 17:19:47 -0500


> If a shortcut to a script is placed in /etc/cron.daily what user does it 
> run as?
> root?

root,  these directories (/etc/cron.*) are processed by entries in the
"true" system crontab - /etc/crontab using a bit of script magick
itself.

You can write additional crontabs and use the crontab command to load
them under any user context you like.

You can also list any user's crontab entries with 'crontab -l {user}'

man crontab ... (the command, not the file)...

NAME
       crontab - maintain crontab files for individual users (V3)
 
SYNOPSIS
       crontab [ -u user ] file
       crontab [ -u user ] { -l | -r | -e }