CentOS5 で set_loginuid failed opening loginuid
Logwatch で毎日これが大量に報告される
crond[10075]: pam_loginuid(crond:session): set_loginuid failed opening loginuid
crond[10087]: pam_loginuid(crond:session): set_loginuid failed opening loginuid
crond[10101]: pam_loginuid(crond:session): set_loginuid failed opening loginuid
<p>ので修正。</p><pre class="prettyprint">$ sudo vi /etc/pam.d/crond
$ cat /etc/pam.d/crond
#
# The PAM configuration file for the cron daemon
#
#
auth sufficient pam_rootok.so
auth required pam_env.so
auth include system-auth
account required pam_access.so
account include system-auth
#session required pam_loginuid.so # ここをコメントアウトした
session include system-auth
</pre>
<p>CentOS5 標準では、カーネルで audit が有効になっていないので、sudo したときや crond で set_loginuid failed が出るらしい。</p>
<ul><li>0002191: pam_loginuid fails with message: set_loginuid failed opening loginuid</li>
</ul>