On Čt, 2015-04-23 at 09:38 +0200, Thorsten Kukuk wrote:
Hi,
at least from Ubuntu and openSUSE users there are a lot of
complains about the
"pam_unix(crond:session): session closed/open for user root"
messages pam_unix writes to syslog.
There is currently no option to disable this message.
I see two possible solutions:
- Only print it if "debug" option is given
- Introduce a "quiet" option to disable this
What do you think?
I am for backwards compatible change - that is introducing the 'quiet'
option.
BTW we have:
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required pam_unix.so
in Fedora/RHEL for a long time to workaround this problem. And recently
in cronie I have added a patch that completely skips PAM calls for
system cron jobs. So it is really questionable whether this change in
PAM is needed.
--
Tomas Mraz
No matter how far down the wrong road you've gone, turn back.
Turkish proverb
(You'll never know whether the road is wrong though.)