From e935396a6c8dffa9be96917dbf9707a5fc83fe7b Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 31 Jan 2022 21:58:11 +0000 Subject: added extra configs for shadow --- repo/system/shadow.xibuild | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'repo/system') diff --git a/repo/system/shadow.xibuild b/repo/system/shadow.xibuild index f3eee25..d01252c 100644 --- a/repo/system/shadow.xibuild +++ b/repo/system/shadow.xibuild @@ -20,8 +20,6 @@ prepare () { -e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \ -i etc/login.defs - sed -e "224s/rounds/min_rounds/" -i libmisc/salt.c - mkdir -p $PKG_DEST/usr/bin touch $PKG_DEST/usr/bin/passwd @@ -171,4 +169,16 @@ account include system-account # End /etc/pam.d/chage EOF + for PROGRAM in chfn chgpasswd chsh groupadd groupdel \ + groupmems groupmod useradd userdel usermod + do + install -v -m644 $PKG_DEST/etc/pam.d/chage /etc/pam.d/${PROGRAM} + sed -i "s/chage/$PROGRAM/" /etc/pam.d/${PROGRAM} + done + + [ -f $PKG_DEST/etc/login.access ] && mv -v $PKG_DEST/etc/login.access{,.NOUSE} + [ -f $PKG_DEST/etc/limits ] && mv -v $PKG_DEST/etc/limits{,.NOUSE} + + + } -- cgit v1.2.1