0

I'm getting the following error when I try run crontab on my CentOS 7 server.

# crontab -l
You (root) are not allowed to access to (crontab.relink.1461708277) because of pam configuration.

I have tried fixing the problem by adding the following to my /etc/security/access.conf file:

+ : root : cron :0
- : ALL : ALL

My server OS version:

 Operating System: CentOS Linux 7 (Core)
 CPE OS Name: cpe:/o:centos:centos:7
 Kernel: Linux 2.6.32-042stab113.11
 Architecture: x86-64

This didn't work :( any ideas?

  • 2
    look at /etc/pam.d/cron – Ipor Sircer Dec 11 '16 at 20:45
  • /etc/pam.d/cron does not exist (/etc/pam.d/crond does exist with this line in it: "account required pam_access.so") – Dale Bertrand Dec 12 '16 at 12:35

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.