From: Paul Hänsch Date: Mon, 23 Sep 2019 12:09:59 +0000 (+0200) Subject: remove automatic pam_mount / pam_script entries X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=897e02d30d887aff64a047a26c3622301ae21447;p=blast remove automatic pam_mount / pam_script entries --- 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