Operating System - HP-UX
1834601 Members
3589 Online
110069 Solutions
New Discussion

Wont Except my root password on HP-UX 11.0

 
Tate Christie
Occasional Contributor

Wont Except my root password on HP-UX 11.0

I just bought a Hp 712 box running HP-UX 11.0
and was playing around in Xwindows and changed the system to a trusted system.

I changed my root password as the guy who sold it to me was using hp712 so changed it to a new one.

I rebooted (hard) and presto cant login.

I rebooted into single user mode and did a passwd root and put in a new one ( thank god I didnt select need password in single mode) anyways rebooted again and tried the password I just changed it to and STILL I cant get in.

Any help PLEASE I dont have a cdrom drive for the box so cant just re-install the OS.

*NOTE* strange thing is when I did do a passwd root in single user mode it asked for the old password and I tried it and it worked.

Thanks for any help.
4 REPLIES 4
Ashwani Kashyap
Honored Contributor

Re: Wont Except my root password on HP-UX 11.0

When you convert a system to trusted mode , it expires all the passwords immediately .

What you can do is boot into single user mode . Mount your /usr and /var/ filesystems.

THen cd to /tcb/file/auth/r
then open the file call root and delete the entries on the second line between
:u_pwd=some_jibberish:\
Delete only some jibbersih leavin :u_pwd=:\intact .

Then save the file . run passwd to set a new passwd . and boot into multiuser mode .
Cheryl Griffin
Honored Contributor

Re: Wont Except my root password on HP-UX 11.0

Consider the length of the password you are using. Is it greater than 8 characters?

Criteria of a Good Password from http://www.docs.hp.com/hpux/onlinedocs/5187-2216/00/00/73-con.html

"A password must have at least six characters and can have up to 80. Special characters can include control characters and symbols such as asterisks and slashes. In standard mode, only the first eight characters are used. In trusted mode, all 80 are significant.

After a conversion to a Trusted System, only the first eight characters of a converted password will be acceptable. Users who had a longer password on the standard system must log in for the first time on the Trusted System with only the first eight characters. Then they may choose a longer password, if they desire. If a system is converted back to standard mode, the passwords are truncated to the first eight characters. "

"Downtime is a Crime."
Joseph Loo
Honored Contributor

Re: Wont Except my root password on HP-UX 11.0

hi,

do the following in single user mode:

# mount /var
# mount /usr
# vi /tcb/files/auth/r/root
from :u_pwd=:\
to :u_pwd=:\
# passwd -f root
depending on the choices you have set in the password policies, key in the password.

boot to multi-user mode or
# init 3

hope it works. by the way, what happens when u do this:

# /usr/lbin/getprpw root

regards.
what you do not see does not mean you should not believe
Kent Ostby
Honored Contributor

Re: Wont Except my root password on HP-UX 11.0

Make sure you don't have a "#" in your password as this is interpreted as a backspace when trying to enter the password later and will result in you never being able to log in.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"