Operating System - HP-UX
1748121 Members
3297 Online
108758 Solutions
New Discussion юеВ

Password recovery in single user mode

 
2xyo
Frequent Advisor

Password recovery in single user mode

Dear,

I want to recover my root password on an hp2470. I follow documentation and i try this :
-Connect to serial port
-CTRL+B to going in GSP mode
-ENTER+ENTER for the login/password GSP
-in GSP, power off then power on
-return to console mode
-ESC to stop boot process
-'boot pri'
-Y to the interact question.
-'hpux -is'
-And i always need a login/password !

Is the only possibility to use Core OS cd[0] ? OR, i have any chance with the serial console ?

Thanks

0 : http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1038505
22 REPLIES 22
UnixT
Frequent Advisor

Re: Password recovery in single user mode

Hi,

You want to recover or reset you passwd ?

The way you said will only gives you to reset your passwd but not will give your passwd what it was..Anyway, lets wait for the Great guys comment
2xyo
Frequent Advisor

Re: Password recovery in single user mode

I'll be happy if I can already reset it. It's not a problem if i can't recover it.
Horia Chirculescu
Honored Contributor

Re: Password recovery in single user mode

You mean that when you issue passwd root you are prompted with the old root password, right?

If this is the case you missed the "null out the password" for root

Best regards,
Horia.

Best regards from Romania,
Horia.
Mark S Meadows
Valued Contributor

Re: Password recovery in single user mode

Hi,

If you have booted the system into single user mode (hpux -is), then it should just be a case of running the following command from the command line :

passwd

or

passwd root

to reset the root password and then bring the system backup into multi user mode.

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).
2xyo
Frequent Advisor

Re: Password recovery in single user mode

After the 'hpux -is', system boot and i have this :

INIT : Overriding default level with 'S' -----
Please enter your login name :
Password :
Authentication incorrect

Please enter your login name :
etc...

I can't type passwd because i have not a prompt in single user mode !

System always asks me for a login/password.
AVV
Super Advisor

Re: Password recovery in single user mode

Hi,


Has this system been into a trusted system ?

2xyo
Frequent Advisor

Re: Password recovery in single user mode

I don't know if the systen is in trust mode.

Anyway, i cannot execute "/usr/lbin/tsconvert ├в r." because I have no access to prompt in Single User mode.

Mark S Meadows
Valued Contributor

Re: Password recovery in single user mode

Hi,

It is possible that you have authentication enabled when booting into single user mode ?

To verify, let the system boot into mullti-user mode and check /etc/default/security.

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).
2xyo
Frequent Advisor

Re: Password recovery in single user mode

It's possible.

But how can i check this file if i can't log in ?!!