]> git.plutz.net Git - blast/commitdiff
remove automatic pam_mount / pam_script entries
authorPaul Hänsch <paul@plutz.net>
Mon, 23 Sep 2019 12:09:59 +0000 (14:09 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 23 Sep 2019 12:09:59 +0000 (14:09 +0200)
modules/smb_nis.mk

index b3516989d07f588b668c6254d05d306cf9870229..320c97ab892a505476eb91923868ce9aab0e63e5 100644 (file)
@@ -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