做好服务器快照
备份pam配置
cp /etc/pam.d/crond /etc/pam.d/crond.bak
编辑/etc/pam.d/crond,输入下面内容:
- #
- # The PAM configuration file for the cron daemon
- #
- #
- # No PAM authentication called, auth modules not needed
- account required pam_access.so
- account include system-auth
- session required pam_loginuid.so
- session include system-auth
- auth include system-auth
复制代码
重启crond服务 |