mirror of
https://github.com/krglaws/MyLFS.git
synced 2025-07-26 15:46:59 +00:00
29 lines
741 B
Bash
29 lines
741 B
Bash
# Shadow Phase 4
|
|
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:' \
|
|
-e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \
|
|
-i etc/login.defs
|
|
|
|
touch /usr/bin/passwd
|
|
./configure --sysconfdir=/etc \
|
|
--disable-static \
|
|
--with-group-name-max-length=32
|
|
|
|
make
|
|
make exec_prefix=/usr install
|
|
make -C man install-man
|
|
|
|
pwconv
|
|
grpconv
|
|
|
|
mkdir -p /etc/default
|
|
useradd -D --gid 999
|
|
|
|
echo "root:$ROOT_PASSWD" | chpasswd
|
|
|