On Sun, Jul 16, 2017 at 12:32:22PM +0200, Václav Ovsík wrote:
> With su is /var/log/auth.log flooded too, I didn't noticed
> before :-/ (logcheck was filtering this). So the last chance is probably
> the utility setpriv mentioned in the runuser manpage. Unfortunately the
> utility is in the optional package with the same name and must by
> installed additionally. I will try tomorrow and write about it.

The setpriv is the final solution I hope.
Replacement su by setpriv using the command:
    sed -r 's/su - \$DBUSER -c/setpriv --euid $DBUSER bash -c/g;' 
in the mk_postgres [1] quiets all log messages from pam and systemd.



Reply via email to