summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorDavid Runge <dvzrv@archlinux.org>2020-05-31 00:27:15 +0200
committerDavid Runge <dvzrv@archlinux.org>2020-05-31 00:27:15 +0200
commit769fbecef3ea7411c6e68ff1c4838f49b7c5d648 (patch)
treec406f6dd968449010e7666074bf5daaf33924464 /configs
parent79a9ed111189fa0bc77ecd7a63877b064299ac4f (diff)
downloadarchiso32-769fbecef3ea7411c6e68ff1c4838f49b7c5d648.tar.xz
Unsetting the root password
Due to changes in the filesystem package [1] the current /etc/passwd does not allow login without an empty root password anymore. This becomes apparent, when switching to another TTY than the one autologin is activated for. By running passwd -d root we unset the password. In the future this should go to a custom /etc/passwd file. [1] https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/filesystem&id=0320c909f3867d47576083e853543bab1705185b
Diffstat (limited to 'configs')
-rwxr-xr-xconfigs/releng/airootfs/root/customize_airootfs.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/releng/airootfs/root/customize_airootfs.sh b/configs/releng/airootfs/root/customize_airootfs.sh
index bf5210c..5a732c8 100755
--- a/configs/releng/airootfs/root/customize_airootfs.sh
+++ b/configs/releng/airootfs/root/customize_airootfs.sh
@@ -10,6 +10,8 @@ ln -sf /usr/share/zoneinfo/UTC /etc/localtime
usermod -s /usr/bin/zsh root
cp -aT /etc/skel/ /root/
chmod 700 /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