diff options
author | davidovski <david@davidovski.xyz> | 2022-01-31 21:58:11 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-01-31 21:58:11 +0000 |
commit | e935396a6c8dffa9be96917dbf9707a5fc83fe7b (patch) | |
tree | d2b084258df08a1491c5dfa7cd61e19617b00d59 /repo/system/shadow.xibuild | |
parent | 4e533cd7b1106e9bd8485fb52159e378038306da (diff) |
added extra configs for shadow
Diffstat (limited to 'repo/system/shadow.xibuild')
-rw-r--r-- | repo/system/shadow.xibuild | 14 |
1 files changed, 12 insertions, 2 deletions
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} + + + } |