[Bug 928271] constant "pam_unix(crond:session): session closed/open for user root" message in syslog. how to turn off the noise?
http://bugzilla.novell.com/show_bug.cgi?id=928271 http://bugzilla.novell.com/show_bug.cgi?id=928271#c8 Reinhard Max <max@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC|max@suse.com | Resolution|--- |INVALID --- Comment #8 from Reinhard Max <max@suse.com> --- AFAIU, it is not a bug, but usually wanted behaviour that PAM logs this kind of stuff. It only gets annoying when you have cron jobs that run very often, but then it is up to you to disable the logging. You can do this by adding the line that was suggested in comment 0 to /etc/pam.d/common-session and change "cron" in it to "crond", so the line reads: session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid To silence the pam_unix(systemd-user:session) log lines as well, you can extend the line to session [success=1 default=ignore] pam_succeed_if.so service in crond:systemd-user quiet use_uid But be aware that the latter might also silence desired log messages coming from stuff like local logins, su, sudo, or ssh. ... and don't forget to restart crond after changing the PAM configuration. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com