遇到一个错误:
0 1 2 3 |
[root@www ~]# crontab -e Permission denied You (root) are not allowed to access to (crontab) because of pam configuration. |
日志记录:
0 1 2 3 4 5 6 |
Nov 1 00:40:01 www crond[10542]: (root) FAILED to authorize user with PAM (Permission denied) Nov 1 00:50:01 www crond[13381]: (root) FAILED to authorize user with PAM (Permission denied) Nov 1 01:00:01 www crond[16194]: (root) FAILED to authorize user with PAM (Permission denied) Nov 1 01:01:01 www crond[16502]: (root) FAILED to authorize user with PAM (Permission denied) Nov 1 01:10:01 www crond[18994]: (root) FAILED to authorize user with PAM (Permission denied) Nov 1 01:20:01 www crond[21802]: (root) FAILED to authorize user with PAM (Permission denied) Nov 1 01:30:01 www crond[24582]: (root) FAILED to authorize user with PAM (Permission denied) |
解决方法:
0 1 2 3 4 5 |
# No PAM authentication called, auth modules not needed #account required pam_access.so #注释掉 account include password-auth session required pam_loginuid.so session include password-auth auth include password-auth |
参考:http://www.rsinfominds.com/you-root-are-not-allowed-to-access-to-crontab-because-of-pam-configuration/SourceByrd's Weblog-https://note.t4x.org/basic/root-are-not-allowed-to-access-to-crontab-pam-configurati/ SourceByrd's Weblog-https://note.t4x.org/basic/root-are-not-allowed-to-access-to-crontab-pam-configurati/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!