Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can someone help to autologin in console text mode as root in fedora, usually I can do using script like this :


0</dev/$1 1>/dev/$1 2>&1
cat /etc/issue
exec $*

and on /etc/inittab do login by calling that script

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

now I can't do that, since fedora use /etc/init/tty.conf :

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

I know its dangerous to autologin and moreover as root, but I don't care, I don't care about security.

share|improve this question
On most Linux installations, considering the root user "secure" is a bit of a mistake. In fact, if you have physical access to the console, and can reboot it manually, gaining access to a root shell is as easy as adjusting the kernel boot parameters, and many distros provide a "recovery mode" boot option that does it for you. The root account can be considered secure against remote users on a server, but you need an encrypted drive to make it secure against a local user. – ams Jan 21 '13 at 13:43
up vote 5 down vote accepted

Add the following line to "/etc/init/tty.conf":

exec /sbin/mingetty --autologin root $TTY
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.