You are not logged in.

#1 2018-12-15 03:11:45

N_BaH
Member
Registered: 2015-12-30
Posts: 84

[SOLVED] [archiso] can't login as root in ttys

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

#2 2018-12-15 03:58:53

jamespharvey20
Member
Registered: 2015-06-09
Posts: 129

Re: [SOLVED] [archiso] can't login as root in ttys

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

#3 2018-12-15 05:10:40

N_BaH
Member
Registered: 2015-12-30
Posts: 84

Re: [SOLVED] [archiso] can't login as root in ttys

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

#4 2018-12-15 09:08:18

seth
Member
Registered: 2012-09-03
Posts: 52,299

Re: [SOLVED] [archiso] can't login as root in ttys

root account locked?

passwd -S root
passwd -u root

unlocks it

Offline

#5 2018-12-15 12:01:26

N_BaH
Member
Registered: 2015-12-30
Posts: 84

Re: [SOLVED] [archiso] can't login as root in ttys

password is unlocked

# passwd -S
root P 12/15/2018 -1 -1 -1 -1

Offline

#6 2018-12-15 13:08:34

N_BaH
Member
Registered: 2015-12-30
Posts: 84

Re: [SOLVED] [archiso] can't login as root in ttys

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

#7 2018-12-15 21:49:12

N_BaH
Member
Registered: 2015-12-30
Posts: 84

Re: [SOLVED] [archiso] can't login as root in ttys

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 wink

Offline

Board footer

Powered by FluxBB