You are not logged in.
hi,
I've used archiso to create a personal liveUSB stick, but I can't set root's password.
I tried different things like beginning with passwd command after automatic login, then after disabling automatic login,
also setting password into releng/airootfs/customize_airootfs.sh using echo "root:password" | chpasswd with no success again.
I can su to root using the password set with the different method.
do you have an idea of what's happening, and what to do ?
Last edited by N_BaH (2018-12-15 21:49:38)
Offline
To set root's password through archiso/releng, I add this to "airootfs/root/customize_airootfs.sh":
passwd root <<EOF
<PASSWORD>
<PASSWORD>
EOF
I don't believe doing this affects automatic login.
Offline
it doesn't throw errors, and I'm still able to su to root using the password.
so password is correctly set, but I still can't login as root on ttys.
Offline
root account locked?
passwd -S root
passwd -u root
unlocks it
Offline
password is unlocked
# passwd -S
root P 12/15/2018 -1 -1 -1 -1
Offline
before you ask :
[root@archiso]# cat /etc/securetty
# File which lists terminals from which root can log in.
# See securetty(5) for details.
console
tty1
tty2
tty3
tty4
tty5
tty6
ttyS0
hvc0
[root@archiso]#
Offline
note that I can't log in through ssh too.
but I've found* what's wrong : archiso's french wiki suggest to change shell from /usr/bin/zsh to /usr/bin/bash, BUT /usr/bin/bash is not in /etc/shells. that's it. 8O
--
* thanks to french forum, and web search engine
Offline