1833381 Members
3543 Online
110052 Solutions
New Discussion

Auto Logon

 
irbaboon
Advisor

Auto Logon

Hi,


How make an Auto Login from a serial terminal???

4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: Auto Logon

If I understand what you want, which is to be able to have a serial terminal be automatically logged in with some username and password, I don't think it can be done.

Unix has no facility to allow you to do this that I know of.
irbaboon
Advisor

Re: Auto Logon

Yes Patrick, I need it.
It,s is possible into LINUX!

Darren Prior
Honored Contributor

Re: Auto Logon

Hi,

I would have thought that it would be a bit of a security risk (obviously depending on the user.)

However perhaps you could have something along the following lines in /etc/inittab:

aut1:234:respawn:/usr/bin/su - user < /dev/tty0p1 > /dev/tty0p1 2 >&1

You'd then need something in the user's .profile to check if they were coming in on this port, and if so to use stty to set the port to the desired baud rate (the default port baud rate is 300 I believe.)

Please note that this is the theory... I haven't tested it in practice!

regards,

Darren
Calm down. It's only ones and zeros...
John Meissner
Esteemed Contributor

Re: Auto Logon

this can be done under linux but I don't believe it can be done in Unix.
I have written expect scripts that allow me to telnet to a server and automatically log in but at a serial terminal? I don't think so. Besides... this is a HUGE security risk. The Janitor could walk into the server room and start hitting keys.... just not a good idea
All paths lead to destiny