Autologin-Konsole als Root auf Fedora

Autologin-Konsole als Root auf Fedora

Kann mir jemand dabei helfen, mich im Konsolentextmodus als Root in Fedora automatisch anzumelden? Normalerweise gelingt mir das mit einem Skript wie diesem:

/sbin/autologin.sh:

#!/bin/bash
0</dev/$1 1>/dev/$1 2>&1
cat /etc/issue
shift
exec $*

und /etc/inittabmelden Sie sich an, indem Sie dieses Skript aufrufen

1:2345:respawn:/sbin/autologin.sh tty1 login -f root
..
..

jetzt kann ich das nicht tun, da Fedora /etc/init/tty.conf verwendet:

stop on runlevel [016]
respawn
instance $TTY
exec /sbin/mingetty $TTY

Ich weiß, dass die automatische Anmeldung gefährlich ist, noch dazu als Root, aber das ist mir egal, die Sicherheit ist mir egal.

Antwort1

Fügen Sie die folgende Zeile zu "/etc/init/tty.conf" hinzu:

exec /sbin/mingetty --autologin root $TTY

verwandte Informationen