Problem
I saw the following cron errors in my configured daily Logwatch mails:
--------------------- Cron Begin ------------------------
**Unmatched Entries**
Jun 3 00:18:01 mail CRON[30693]: Cannot make/remove an entry for the specified session
Jun 3 03:18:01 mail CRON[7001]: Cannot make/remove an entry for the specified session
Jun 3 06:18:01 mail CRON[15603]: Cannot make/remove an entry for the specified session
Jun 3 09:18:01 mail CRON[24652]: Cannot make/remove an entry for the specified session
Jun 3 12:18:01 mail CRON[842]: Cannot make/remove an entry for the specified session
Jun 3 15:18:01 mail CRON[9785]: Cannot make/remove an entry for the specified session
Jun 3 18:18:01 mail CRON[18698]: Cannot make/remove an entry for the specified session
Jun 3 21:18:01 mail CRON[27279]: Cannot make/remove an entry for the specified session
---------------------- Cron End -------------------------
--------------------- Connections (secure-log) Begin ------------------------
**Unmatched Entries**
CRON: pam_loginuid(cron:session): Error writing /proc/self/loginuid: Operation not permitted: 1 Time(s)
CRON: pam_loginuid(cron:session): set_loginuid failed: 1 Time(s)
---------------------- Connections (secure-log) End -------------------------
I could not identify any negative impact by this, beside the error messages.
Looking for that error I found:
Possible fix
I commented out the following line in /etc/pam.d/cron:
session required pam_loginuid.so
After restarting cron with supervisorctl restart cron the error messages are gone.
Questions
Can someone confirm theses errors? grep Cannot /var/log/syslog
Is it safe to uncomment that line?
Problem
I saw the following cron errors in my configured daily Logwatch mails:
I could not identify any negative impact by this, beside the error messages.
Looking for that error I found:
Possible fix
I commented out the following line in
/etc/pam.d/cron:After restarting cron with
supervisorctl restart cronthe error messages are gone.Questions
Can someone confirm theses errors?
grep Cannot /var/log/syslogIs it safe to uncomment that line?