Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
*/5 * * * * root ./

The above must be run as root,how to make it work for all users?

share|improve this question

add it to your global crontab in /etc/crontab

share|improve this answer
su - 
crontab -e
share|improve this answer

use sudo to run it and configure in sudoers with the NOPASSWD option.

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.