#!/bin/bash ROOTPW='$1$5RPAAd$oejpw8ErihLIB7vmGE4SV1' sed -i 's/groups$(EXEEXT) //' src/Makefile.in find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \; sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \ -e 's:/var/spool/mail:/var/mail:' \ -i etc/login.defs sed -i 's/1000/999/' etc/useradd touch /usr/bin/passwd ./configure --sysconfdir=/etc \ --with-group-name-max-length=32 make make -j1 install pwconv grpconv usermod -p "${ROOTPW}" root