Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can use crontab -e as a normal user to edit my user crontab. Does anacron have any similar feature for individual non-admin users, or does it only have a system-wide anacrontab?

share|improve this question
This blog post have very nice description – gavenkoa Feb 28 '13 at 7:32
@gavenkoa: That blog has rottet away. – Martin Schröder Mar 30 '15 at 12:53
up vote 10 down vote accepted
anacron -t ${HOME}/etc/anacrontab -S ${HOME}/var/spool/anacron
  • -t anacrontab (eg. ${HOME}/etc/anacrontab )
  • -S spooldir (eg. ${HOME}/var/spool/anacron

Add the command in your ~/.profile to execute when you login, or put it in a hourly cronjob to run on its own.

You don't need to worry about anacron running all its scripts every hour if you put it in cron, as it keeps its own timestamps of its last run in the spool directory.

See man anacrontab for more info on making your own anacrontab file.

share|improve this answer
Thanks. Got it all set up. – Ryan Thompson Aug 22 '10 at 21:13
glad you managed it :) anything get back to us – Prix Aug 22 '10 at 21:20

Depending on the volume of affected scripts, you may also just use sudo -u with the command in your anacrontab file or directory.

Example with bash:

sudo -u ${USER_TO_RUN_AS} bash -l -c "echo 'Replace this echo with some more useful logic.'"

This saves you from having to maintain two additional files.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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