From afced56b38a7fb9a06fdcb72fc717b87442f7073 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sun, 2 Nov 2014 21:28:47 +0100 Subject: [PATCH] - rel 3; use postlogin pam config --- openssh.spec | 4 ++-- opensshd.pamd | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/openssh.spec b/openssh.spec index 8e9079a..6aaa841 100644 --- a/openssh.spec +++ b/openssh.spec @@ -20,7 +20,7 @@ %if "%{pld_release}" == "ac" %define pam_ver 0.79.0 %else -%define pam_ver 1:1.1.5-5 +%define pam_ver 1:1.1.8-5 %endif Summary: OpenSSH free Secure Shell (SSH) implementation Summary(de.UTF-8): OpenSSH - freie Implementation der Secure Shell (SSH) @@ -34,7 +34,7 @@ Summary(ru.UTF-8): OpenSSH - свободная реализация прото Summary(uk.UTF-8): OpenSSH - вільна реалізація протоколу Secure Shell (SSH) Name: openssh Version: 6.7p1 -Release: 2 +Release: 3 Epoch: 2 License: BSD Group: Applications/Networking diff --git a/opensshd.pamd b/opensshd.pamd index 1dd3461..56665be 100644 --- a/opensshd.pamd +++ b/opensshd.pamd @@ -1,12 +1,14 @@ #%PAM-1.0 auth required pam_listfile.so item=user sense=deny file=/etc/security/blacklist.sshd onerr=succeed auth include system-auth +auth include postlogin account required pam_shells.so account required pam_nologin.so -account required pam_access.so +account required pam_access.so account include system-auth password include system-auth session required pam_loginuid.so session optional pam_keyinit.so force revoke session include system-auth +session include postlogin session optional pam_mail.so -- 2.43.0