Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try to run cron jobs from root, I am getting the following error. I am using RHEL5. Can anyone help me?

    [root@localhost]# crontab -e
    Permission denied
You (root) are not allowed to access to (crontab) because of pam configuration.

The contents of /etc/pam.d/crond is given below

# The PAM configuration file for the cron daemon
auth       sufficient
auth       required
auth       include    system-auth
account    required
account    include    system-auth
session    required
session    include    system-auth

share|improve this question
Can you share the contents of /etc/pam.d/crond with us? – dafydd Feb 5 '13 at 15:53
Welcome to Stack Exchange. – Dejan Feb 6 '13 at 14:09
I had same problem on Centos 7. No idea why, changing root's password with passwd solved my problem (it probably updated some permissions related settings). – solusipse Dec 26 '14 at 10:32

You must log in to answer this question.

Browse other questions tagged .