Tag Archives: crontab

How to enable Cron for non-root users

If you try to edit a user’s crontab and get this error:

”crontab: you are not authorized to use cron.  Sorry.”

You need to log in as root and edit a config file to add the user that you want to access Cron too:

# vi /usr/lib/cron/cron.allow

We add the user:

root
user1
user2

We save & close.

Now we log in with the user and we are able to access its crontab:

$ crontab -e

[Seen: Nekan]