Is it just for controlling the permissions of the script being called or does it also effect when or if the script runs? I assume if I setup a cron for a non-root user it should always run, even if I haven't logged in as that user since reboot, right?

3 Answers 3


Remember that Unix was originally designed as a multi-user system, where multiple people were using the same physical computer. (Unlike today, where most Unix systems are used by only one person, and multiple user accounts are just to limit vulnerabilities.)

So the original reason for per-user crontabs was so that each person could schedule jobs they wanted run periodically (without giving them permissions to edit the system crontab, and thus interfere with other people's jobs). But now, it's primarily just to control the permissions of the jobs being run.

So yes, once a crontab is saved, the jobs will run whether or not that user is logged in (or has ever logged in). The main cron daemon runs the per-user crontabs as well as the system crontab.

  • Good point, if they were both editing the same system file that would be a headache.
    – MetaGuru
    May 10, 2012 at 20:18

Also note that jobs in non-root crontabs will be executed as that user. Whereas in /etc/crontab and the /etc/cron.d, /etc/cron.daily etc. directories the system admin can select the user account the job will run as because it has an additional entry.

From man 5 crontab:

   The format of a cron command is very much the V7 standard,  with
   a  number  of  upward-compatible extensions.  Each line has five
   time and date fields, followed by a user name  if  this  is  the
   system  crontab  file, followed by a command.

Basically, it allows an unprivileged user to have cron jobs. And yes, you will want cron jobs if you want regular things done. And yes, it will persist across reboots.

at/batch provides similar facilities if you don't want "periodically forever" semantics.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.