yum install -y crontabs
sed -ri ‘s/.*pam_loginuid.so/#&/‘ /etc/pam.d/crond
vi /etc/pam.d/crond
将session required pam_loginuid.so注释掉,如下图:
service crond start
时间: 2024-10-20 15:45:01
yum install -y crontabs
sed -ri ‘s/.*pam_loginuid.so/#&/‘ /etc/pam.d/crond
vi /etc/pam.d/crond
将session required pam_loginuid.so注释掉,如下图:
service crond start