先检查/var/log/messages和/var/log/secure中是否有错误提示,有则修复。
我碰到的情况是账号密码过期了,需要从新设置,在/var/log/secure中查到
Jun 12 11:06:40 ServiceVM0787 crontab: pam_unix(crond:account): expired password for user root (root enforced)
如果解决不了,再打开配置文件/etc/security/access.conf,
在
- : ALL : ALL
前添加:
+ : root : ALL
You (root) are not allowed to access to (crontab)
原文:http://my.oschina.net/u/2269208/blog/465943