set_loginuid failed opening loginuid

If this file doesn't exist:

/proc/<pid of crond>/loginuid

It's because the kernel doesn't have AUDIT enabled. So you get a bunch of errors in "/var/log/secure" with "set_loginuid failed opening loginuid".

Recompile kernel with audit support:


If recompiling of kernel is not an option then:

Comment the below lines from all pam.d files.

session required

Find files via:

# grep -l /etc/pam.d/*

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

audit_log_user_command(): Connection refused

The same goes for "audit_log_user_command(): Connection refused".

sudo update

updating sudo, should now fix this issue.