2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Document how to suppress the last login message on Solaris.

This commit is contained in:
Todd C. Miller
2018-04-25 09:56:22 -06:00
parent f53e5e2bdf
commit 95fb4458d5

View File

@@ -219,6 +219,14 @@ A) On systems that use a Mozilla-derived LDAP SDK there must be a
Enter new password: <return>
Re-enter password: <return>
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?