From cacd76ad91f961c434acbc7f5a5e2ea95963c7e7 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 27 Dec 2021 20:43:22 +0800 Subject: [PATCH] shadow: stop building su --- postlfs/security/shadow.xml | 78 +++++++++++++------------------------ 1 file changed, 27 insertions(+), 51 deletions(-) diff --git a/postlfs/security/shadow.xml b/postlfs/security/shadow.xml index b82ee0b535..184815c210 100644 --- a/postlfs/security/shadow.xml +++ b/postlfs/security/shadow.xml @@ -133,7 +133,9 @@ sed -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \ -e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \ -i etc/login.defs && -./configure --sysconfdir=/etc --with-group-name-max-length=32 && +./configure --sysconfdir=/etc \ + --with-group-name-max-length=32 \ + --without-su && make @@ -189,6 +191,13 @@ make user name is 32 characters. Make the maximum group name the same. + + --without-su: Don't reinstall + su because the upstream recommends to use the + su command from + when Linux-PAM is available. + +