|
Automatic login into linux console
There are two steps:
1) Add the line
NO_PASSWORD_CONSOLE tty1:tty2:tty3:tty4:tty5:tty6
to the file /etc/login.defs
List only consoles which you want to be used for automatic login
2) Open /etc/inittab and find the line similar to
3:2345:respawn:/sbin/mingetty tty3
and replace it with
3:2345:respawn:/sbin/mingetty --autologin your_name tty3
Yes, your_name can be root.
Restart init: do
#shutdown now
#init 3
All configured consoles should have login session started.
If your system uses different getty program you might need to modify step 2 or install mingetty.
|