Tuesday, 8 August 2017

CREATING CRONJOB FOR NON-ROOT USER

login as root
Open cron.allow file ex. vi /etc/cron.allow And Add non-root user, below format
root
wcuser
cat /etc/cron.allow
Output:

su - wcuser
crontab -l --> To checking all cronjob
crontab -e --> To creating cronjobs

* 10 * * 1 /<script path>

ESC+:+wq!

crontab -l --> To checking all cronjob

No comments:

Post a Comment