Operating System - HP-UX
1752795 Members
5901 Online
108789 Solutions
New Discussion юеВ

Re: Console Login with automatically logout right after

 
SOLVED
Go to solution
davesec
Advisor

Console Login with automatically logout right after

I got a rx2660 with HP-UX 11.31 0809 with a console over a console switch connected to it.
I get the Login Prompt and some mysterous happens:

Console Login: root
Password: ********
...
Value of TERM has been set to "hp".
WARNING: YOU ARE SUPERUSER!!\n
root@host: ~ > logout
logout root

GenericSysName [HP Release B.11.31] (see /etc/issue)
Console Login:

Every time I'd like to login the console do a automatic logout like a TERM (Ctrl+D) signal would appear.
If I login over a ssh session, the login works as expected.

What could be the problem?

Thanks for help.
5 REPLIES 5
Hakki Aydin Ucar
Honored Contributor

Re: Console Login with automatically logout right after

When you logon via ssh, check this ;
# echo $TMOUT

must be "0"
Kenan Erdey
Honored Contributor

Re: Console Login with automatically logout right after

hi,

if it's ok in a normal ssh session, can you check in /etc/profile. look for a line like if [ tty = /dev/console ] ..
Computers have lots of memory but no imagination
Matti_Kurkela
Honored Contributor
Solution

Re: Console Login with automatically logout right after

Are you using the correct cable/adapter between the rx2660 and the console switch?

If the console switch has configurable DTR/DSR handshaking settings, try changing that setting.

Alternatively, see if adding this to the end of /etc/profile helps:

if [ $(tty) = "/dev/console" ]; then
stty clocal
fi

(If the TTY driver thinks the console port is connected to a modem and the modem has been reset or lost the connection, the driver will automatically cause a logout by sending a HUP to all processes accessing the port. This command disables the modem control line monitoring on the console port.)

MK
MK
davesec
Advisor

Re: Console Login with automatically logout right after

Thank you all for your kind replies. I could fix it with a restart of the box.
Good: It works now.
Bad: I don't know why...

Next time I get the problem I will try your suggestions.

Thank you
davesec
Advisor

Re: Console Login with automatically logout right after

Case closed.