From f9e80f2a6b394a15a8a05ec06e44d637edb5c1c2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 28 Aug 2014 08:14:22 +0200 Subject: [PATCH] openssh: pam.d/sshd: add pam_lastlog(8) to make sure /var/log/lastlog is created. --- srcpkgs/openssh/template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/openssh/template b/srcpkgs/openssh/template index 4db32723879..1e0dfd25bdf 100644 --- a/srcpkgs/openssh/template +++ b/srcpkgs/openssh/template @@ -3,7 +3,7 @@ _desc="The OpenSSH implementation of SSH protocol" pkgname=openssh version=6.6p1 -revision=10 +revision=11 build_style=gnu-configure configure_args="--without-tcp-wrappers --datadir=/usr/share/openssh --sysconfdir=/etc/ssh --without-selinux --with-privsep-user=nobody @@ -49,7 +49,9 @@ post_install() { # Disable pam_cracklib sed '/pam_cracklib.*/d' -i ${DESTDIR}/etc/pam.d/sshd - # Enable pam_systemd.so by default. + # Enable pam_lastlog(8) by default. + echo -e "session\trequired\tpam_lastlog.so\tnever\tsilent\n" >> ${DESTDIR}/etc/pam.d/sshd + # Enable pam_systemd by default. echo -e "-session\toptional\tpam_systemd.so\n" >> ${DESTDIR}/etc/pam.d/sshd }