-   Linux - Newbie (
-   -   autologin after reboot (

nazir 08-08-2005 03:15 AM

autologin after reboot
How can i make my linux automaticaly log in to console as some user after reboot (no login and password prompt)?

Yes i know this is stupid idea but i need it on an embedded os.
It is based on Slackware 10.1.

zhy2111314 08-08-2005 03:30 AM

I also did Embedded OS now,so i can give you an example for referrence:

First,modify /etc/inittab:

T0:12345:respawn:/sbin/autologin ttyS0 login -f root

ps: that's the example for autologin by UART(COM1), so here is ttyS0


exec 0</dev/$1>/dev/$1 2>&1
exec $*

ps:make sure this script can be executable ,if not ,using chmod +x /sbin/autologin by root.

hope to help:)

nazir 08-08-2005 04:26 AM

something is wrong, i did that, but after reboot there is no autologin on process list, when i type it on console
i get passwortd prompt on the local console

/sbin/autologin ttyS0 login -f root

btw what system are you using on your machine and what is this system's purpose? (If i can ask of course ;) )

zhy2111314 08-08-2005 05:01 AM

i used it for my arm-linux to autologin.
that's the way you can refer to,not the actual answer for your question ,you should change it for your environment i thought:)

All times are GMT -5. The time now is 03:52 AM.