From: Todd C. Miller Date: Wed, 25 Apr 2018 15:56:22 +0000 (-0600) Subject: Document how to suppress the last login message on Solaris. X-Git-Tag: SUDO_1_8_23^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95fb4458d5f39eeaa73bc853ce8a1756f98e0812;p=sudo Document how to suppress the last login message on Solaris. --- diff --git a/doc/TROUBLESHOOTING b/doc/TROUBLESHOOTING index bac6fea9e..3bb6f14b7 100644 --- a/doc/TROUBLESHOOTING +++ b/doc/TROUBLESHOOTING @@ -219,6 +219,14 @@ A) On systems that use a Mozilla-derived LDAP SDK there must be a Enter new password: Re-enter password: +Q) On Solaris, when I run command via sudo it displays information + about the last login for every command. How can I fix this? +A) This output comes from /usr/lib/security/pam_unix_session.so.1. + To suppress it, first create /etc/pam.d/sudo if it doesn't exist: + cp /etc/pam.d/other /etc/pam.d/sudo + Then add "nowarn" to the end of the pam_unix_session.so.1 line: + session required pam_unix_session.so.1 nowarm + Q) On HP-UX, when I run command via sudo it displays information about the last successful login and last authentication failure for every command. How can I fix this?