summaryrefslogtreecommitdiff
path: root/configs/releng/airootfs/root/customize_airootfs.sh
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2020-07-17 09:04:29 +0300
committernl6720 <nl6720@gmail.com>2020-07-20 13:39:41 +0300
commit6689537563b5115f0fbd9088fe8ff8c91e5c6b14 (patch)
tree128846ceb552def41c4914ee8539c9723a6f274c /configs/releng/airootfs/root/customize_airootfs.sh
parent12b02406eb8bb427206e21b138bad3f1a2ec0b19 (diff)
downloadarchiso32-6689537563b5115f0fbd9088fe8ff8c91e5c6b14.tar.xz
Set root user's shell and password with custom /etc/passwd and /etc/shadow
Correct shadow file permissions from build.sh.
Diffstat (limited to 'configs/releng/airootfs/root/customize_airootfs.sh')
-rwxr-xr-xconfigs/releng/airootfs/root/customize_airootfs.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/configs/releng/airootfs/root/customize_airootfs.sh b/configs/releng/airootfs/root/customize_airootfs.sh
index bd9a799..5c98fd6 100755
--- a/configs/releng/airootfs/root/customize_airootfs.sh
+++ b/configs/releng/airootfs/root/customize_airootfs.sh
@@ -5,10 +5,7 @@ set -e -u
sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
locale-gen
-usermod -s /usr/bin/zsh root
cp -aT /etc/skel/ /root/
-# unset the root password
-passwd -d root
sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist