1832864 Members
2774 Online
110048 Solutions
New Discussion

Re: Automatic logins

 
SOLVED
Go to solution
Steven Buschman_1
Occasional Contributor

Automatic logins

Is there an obviously insecure way to set up an automatic login upon
boot up? I want to set it so a particular user is automatically logged
in after a system is rebooted. I know "another" platform/OS where
if a user name is in a file /etc/autologin, upon a reboot that user is
automatically logged in, and that is what I am trying to duplicate.
Thanks.
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: Automatic logins

No way that I know of with HP-UX.

If you are telnet'ing to your HP-UX box from Windows via some sort of emulator, then it will be very difficult for windows to know when the machine reboots.

The only remote possibility I can think of is if you have some sort of bat file in windows that monitors the connection to the hp-ux box and if the connection disappears for a length of time, then when the connection reappears, a new session is started, and the user is logged in. I believe Reflection has the ability to script tasks that can occurr when Reflection is started, so it could conceivably log in automatically when it is started.

I don't know if that would work, it's pure theory at this point.
harry d brown jr
Honored Contributor

Re: Automatic logins

I've done it before, by placing this:

/usr/bin/X11/xterm -sl 2000 -ls -sb -cr Wheat -T `hostname` -bg MidnightBlue -fg Wheat -fn 7x13 -fb 7x13B -display IPADDRGOESHERE

in

/sbin/rc2.d/S230ptydaemon

live free or die
harry
Live Free or Die
Steven Buschman_1
Occasional Contributor

Re: Automatic logins

Sorry, I failed to mention that this system has graphics and I want
the automatic login to the CDE desktop for a pdm user locally.
The system is being visually monitored 7x24 in a secure room where
they typically do not give the monitoring person any passwords.
Thanks.
someone_4
Honored Contributor

Re: Automatic logins

Sound like you have some sort of "help desk" that monitors. What we did was make a user for example support and write scripts in /home/support/.profile to lock them in and automaticly exectue a certain menu driven script or process upon reboot. Also depending on what you are using some x windows clients have a store the password option.

Richard
someone_4
Honored Contributor

Re: Automatic logins

opps I didnt mean

" exectue a certain menu driven script or process upon reboot "

meant

" exectue a certain menu driven script or process upon login "

Richard