From 7a46fc3a2bc5f776df137194bb38481211713105 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 23 Sep 2019 17:21:28 +0200 Subject: [PATCH] prefer files for nss resolution, to enable root fallback --- modules/smb_nis.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/smb_nis.mk b/modules/smb_nis.mk index 2771d82..dcd068f 100644 --- a/modules/smb_nis.mk +++ b/modules/smb_nis.mk @@ -48,7 +48,7 @@ _smb_nis: ${CFGROOT}/opt/pam_script/pam_script_passwd ${CFGROOT}/etc/security/pa _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 's;^(passwd:|group:|shadow:|gshadow:).*$$;\1 files 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 -- 2.39.2