[pam/f19] disable lastlog messages for gdm

Tomáš Mráz tmraz at fedoraproject.org
Wed Jun 12 15:12:14 UTC 2013


commit 4f5c509ee6ad03ce2dfc77ab5d7639febc6ef255
Author: Tomas Mraz <tmraz at fedoraproject.org>
Date:   Wed Jun 12 17:12:04 2013 +0200

    disable lastlog messages for gdm

 pam.spec       |    5 ++++-
 postlogin.pamd |    4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/pam.spec b/pam.spec
index a906b04..86a691e 100644
--- a/pam.spec
+++ b/pam.spec
@@ -3,7 +3,7 @@
 Summary: An extensible library which provides authentication for applications
 Name: pam
 Version: 1.1.6
-Release: 11%{?dist}
+Release: 11%{?dist}.1
 # The library is BSD licensed with option to relicense as GPLv2+
 # - this option is redundant as the BSD license allows that anyway.
 # pam_timestamp, pam_loginuid, and pam_console modules are GPLv2+.
@@ -388,6 +388,9 @@ fi
 %doc doc/adg/*.txt doc/adg/html
 
 %changelog
+* Wed Jun 12 2013 Tomáš Mráz <tmraz at redhat.com> 1.1.6-11.1
+- disable lastlog messages for gdm
+
 * Tue May  7 2013 Tomáš Mráz <tmraz at redhat.com> 1.1.6-11
 - the default isadir is more correct
 
diff --git a/postlogin.pamd b/postlogin.pamd
index 9ebb870..79e71b8 100644
--- a/postlogin.pamd
+++ b/postlogin.pamd
@@ -2,6 +2,6 @@
 # This file is auto-generated.
 # User changes will be destroyed the next time authconfig is run.
 
-session     [success=1 default=ignore] pam_succeed_if.so service !~ gdm* quiet
-session     [default=1]   pam_lastlog.so nowtmp showfailed
+session     [success=1 default=ignore] pam_succeed_if.so service !~ gdm* service !~ su* quiet
+session     [default=1]   pam_lastlog.so silent nowtmp
 session     optional      pam_lastlog.so silent noupdate showfailed


More information about the scm-commits mailing list