From 897e02d30d887aff64a047a26c3622301ae21447 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 23 Sep 2019 14:09:59 +0200 Subject: [PATCH] remove automatic pam_mount / pam_script entries --- modules/smb_nis.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/smb_nis.mk b/modules/smb_nis.mk index b351698..320c97a 100644 --- a/modules/smb_nis.mk +++ b/modules/smb_nis.mk @@ -43,6 +43,7 @@ _smb_nis: ${CFGROOT}/etc/yp.conf ${CFGROOT}/etc/defaultdomain _smb_nis: ${CFGROOT} sed -Ei 's;^(passwd:|group:|shadow:|gshadow:) *;\1 nis ;' $${CFGROOT}/etc/nsswitch.conf + sed -Ei '/pam_(script|mount).so/d' $${CFGROOT}/etc/pam.d/common-* printf '\nauth optional pam_mount.so\n' >>$${CFGROOT}/etc/pam.d/common-auth printf '\nsession optional pam_mount.so\n' >>$${CFGROOT}/etc/pam.d/common-session printf '\npassword required pam_script.so dir=/opt/pam_script\n' >$${CFGROOT}/etc/pam.d/common-password -- 2.39.2