vps Asked: 2010-02-04 04:09:22 +0800 CST2010-02-04 04:09:22 +0800 CST 2010-02-04 04:09:22 +0800 CST How to add a job in crontab that can be executed with no priviledge restrict? 772 */5 * * * * root ./temp.sh The above must be run as root,how to make it work for all users? cron permissions 3 Answers Voted Christian 2010-02-04T04:54:19+08:002010-02-04T04:54:19+08:00 add it to your global crontab in /etc/crontab Rich 2010-02-04T04:14:11+08:002010-02-04T04:14:11+08:00 su - crontab -e jch 2010-02-04T08:20:49+08:002010-02-04T08:20:49+08:00 use sudo to run it and configure temp.sh in sudoers with the NOPASSWD option.
add it to your global crontab in
/etc/crontab
use sudo to run it and configure temp.sh in sudoers with the NOPASSWD option.