LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   autologin after reboot (https://www.linuxquestions.org/questions/linux-newbie-8/autologin-after-reboot-351046/)

nazir 08-08-2005 03:15 AM

autologin after reboot
 
Hi,
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:
Code:

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

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

Then,/sbin/autologin:
Code:

#!/bin/sh
exec 0</dev/$1>/dev/$1 2>&1
shift
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
Code:

/sbin/autologin ttyS0 login -f root
password:

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 08:58 AM.