aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/shadow.sh
diff options
context:
space:
mode:
Diffstat (limited to 'chapter8/shadow.sh')
-rw-r--r--chapter8/shadow.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/chapter8/shadow.sh b/chapter8/shadow.sh
index 68d1b44..075caad 100644
--- a/chapter8/shadow.sh
+++ b/chapter8/shadow.sh
@@ -5,25 +5,25 @@ set -e
ROOTPW='$1$5RPAAd$oejpw8ErihLIB7vmGE4SV1'
# shellcheck disable=SC2016
-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 -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
+ -i etc/login.defs &&
-sed -i 's/1000/999/' etc/useradd
+sed -i 's/1000/999/' etc/useradd &&
-touch /usr/bin/passwd
+touch /usr/bin/passwd &&
./configure --sysconfdir=/etc \
- --with-group-name-max-length=32
+ --with-group-name-max-length=32 &&
-make
-make -j1 install
+make &&
+make -j1 install &&
-pwconv
-grpconv
+pwconv &&
+grpconv &&
usermod -p "${ROOTPW}" root