禁止Cron: pam_unix写入日志

in ubuntuLinuxDebianCentos with 0 comment

<span style="color: #000000;"><span style="color: #ff0000;">vi /etc/pam.d/common-session-noninteractive</span>
文件结尾附件找到</span>
<span style="color: #ff0000;"> session required <wbr /> <wbr /> <wbr /> <wbr /> <wbr /> <wbr /> <wbr /> pam_unix.so</span>
<span style="color: #000000;"> 前面加上:</span>
<span style="color: #ff0000;"> session <wbr /> <wbr /> <wbr /> <wbr /> [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid</span>
<span style="color: #000000;"> 保存。</span>

<span style="color: #ff0000;">service cron restart</span>

粤ICP备15078260号-3