Operating System - HP-UX
1833758 Members
2733 Online
110063 Solutions
New Discussion

root locked out from console and su.

 
Henry F. Johnson
Frequent Advisor

root locked out from console and su.

We have a trusted HP-UX 11.23 rx1620 server, which we have configured sshd, tcpd. We cannot login to the server as root using SSH, telnet or on the console. One of the sysadmins has a window open on the server, so we can get in without taking the server to single user mode. The file /etc/securetty has been configured with console as the only entry in the file.Yesterday we could ssh into the system, today we cannot. I know it seems strange, but everything we try is blocked from allowing root into the server other than by using the window which we have open.
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: root locked out from console and su.

What, if any, error messages are you getting when you try to connect?

Is the account just disabled? Have you tried enabling it?

To enable:
# /usr/lbin/modprpw -k root

To check its status:
# /usr/lbin/getprpw -m lockout root
If any of the digits in the numeric string are '1' then the account is locked. Check the getprpw man page, the lockout section, for an explanation of each column in the output.
Steven E. Protter
Exalted Contributor

Re: root locked out from console and su.

Shalom,

There is a root password file in /tcb

/tcb/auth/files/r

Null out the root password line, which should be obvious and root password access will be restored.

SEP
Where the heck has ITRC been all day?
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Henry F. Johnson
Frequent Advisor

Re: root locked out from console and su.

The password did not meet the password requirements we had enabled so it would not allow us to login until we used the techniques that both of you provided. Thank you