crontab Commands Fails in Linux: You (%s) are not allowed to use this program (crontab)

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World

Error Description:
crontab –e, crontab –l commands are failing with following error.
$ crontab -l
You (brmsftp) are not allowed to use this program (crontab)
See crontab(1) for more information
$ crontab -e

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

Solution Description:
There are 2 files located in /etc directory. Those are cron.deny and cron.allow. To enable the crontab for a particular user, you have to add the particular UNIX username in cron.allow file. To disable the crontab for a user, you need to add the username in the cron.deny file.

These files are owned by root and the modification needs to be done by the root user only.

Note: if you add the username in both cron.deny and cron.allow files, it will consider the allow option only.

File names are.
# ls -ltr cron.*
-rw-r--r-- 1 root root    0 May  6  2011 cron.deny
-rw-r--r-- 1 root root   38 Dec 17 21:56 cron.allow

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer