How to fix Crontab -e – You are not allowed to use this program (crontab)

Question: I’ve received a new server and logon, trying to use Crontab but getting this error message:

You (your_logon) are not allowed to use this program (crontab)
See crontab(1) for more information

How can I fix?

Answer: It looks like you are experiencing a situation where only root can use crontab – but other logon accounts require some extra steps.

On Linux there are two files which control the access to crontab:

/etc/cron.allow

/etc/cron.deny

You will need to add the logon account to the /etc/cron.allow file. The way to add the logon account is to –su  to root and then :

echo jack > /etc/cron.allow

 

Author: Jack Vamvas 

Leave a Reply

Discover more from ciquery

Subscribe now to keep reading and get access to the full archive.

Continue reading