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
This commit is contained in:
parent
79a9ed1111
commit
769fbecef3
@ -10,6 +10,8 @@ ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
|||||||
usermod -s /usr/bin/zsh root
|
usermod -s /usr/bin/zsh root
|
||||||
cp -aT /etc/skel/ /root/
|
cp -aT /etc/skel/ /root/
|
||||||
chmod 700 /root
|
chmod 700 /root
|
||||||
|
# unset the root password
|
||||||
|
passwd -d root
|
||||||
|
|
||||||
sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
|
sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
|
||||||
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
|
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
|
||||||
|
Loading…
Reference in New Issue
Block a user