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

03 September,2020 by Jack Vamvas

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

 

 

Read More on Crontab 

Cron schedule for the first Sunday of every month

 


Author: Jack Vamvas (http://www.dba-ninja.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on How to fix Crontab -e - You are not allowed to use this program (crontab)


dba-ninja.com