1837791 Members
3684 Online
110120 Solutions
New Discussion

Can't login as root

 
SOLVED
Go to solution
juno2
Super Advisor

Can't login as root

I can't login the HP UX 10.2 server after changed to trusted system , how can I login it and change the root password ? thx.
11 REPLIES 11
Tim Adamson_1
Honored Contributor

Re: Can't login as root

Boot to single user. It's the only way you can go. That will mean a forced system crash!.


Tim.
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
Stanimir
Trusted Contributor
Solution

Re: Can't login as root

Run #init -s

to enter in single-user mode.
juno2
Super Advisor

Re: Can't login as root

I am not sure how to access single user mode , is it the the mode of " ISL> " ? Thx.
T G Manikandan
Honored Contributor

Re: Can't login as root

Try logging into the console.

Reset the password.

On untrusted system only the first eight characters are used as password.
On trusted system all the characters are used.

Try and revert
Tim Adamson_1
Honored Contributor

Re: Can't login as root

When the system is rebooting, interrupt when it says to do so. Type "boot pri" and interact when asked to do so.

Then type "hpux -is"


Tim
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
T G Manikandan
Honored Contributor

Re: Can't login as root

ie.

trusted system first 8 characters are taken as password as default password length 8.

If you had a password > 8 just try out logging into root using the first 8 characters.

Michael Tully
Honored Contributor

Re: Can't login as root

A couple of thoughts for next time that you do this. (changing a system to trusted)

1. Install 'sudo' You can get it here:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.6/

2. Make sure that you have a session logged in as root, in case this happens. Changing a system to trusted expires all passwords, even root.
Anyone for a Mutiny ?
T G Manikandan
Honored Contributor

Re: Can't login as root

if you are unable to still login,

you can ,

1.boot into single user mode
by
interrupting the boot sequence

interact with IPL
IPL>hpux -is

2./usr/lbin/tsconvert -r
untrust the system

3.Remove the encrypted password entry of root from /etc/passwd

4.Again make the system trusted by
/usr/lbin/tsconvert

reboot the system

Thanks
juno2
Super Advisor

Re: Can't login as root

After go to single user mode , is it just use the command "passwd" to change the password ? thx.
Robert-Jan Goossens
Honored Contributor

Re: Can't login as root

Hi,

If you are in single user mode,

# /sbin/mount -a
# cd # cd /tcb/files/auth/r/

and then delete the actual encrypted password from the root file

Hope it helps,

Robert-Jan.
Michael Tully
Honored Contributor

Re: Can't login as root

Once in single user mode remove the entry in the file Robert has suggested. The field your looking for is 'u_pwd'.

Make a copy of the file first just in case.
Anyone for a Mutiny ?