1751894 Members
4977 Online
108783 Solutions
New Discussion юеВ

Re: Lost password

 
SOLVED
Go to solution
kunjuttan
Super Advisor

Lost password

Hi Gurus,
Is there any procedure to change the root password if I lost the same?
8 REPLIES 8
Michael Steele_2
Honored Contributor

Re: Lost password

Hi

Well you need to be in the root account login to change the root password, right? So if you no long remember it then you're going to have to reboot the box and go into single user mode which bypasses the password challenge.

interupt at the 10 second prompt

bo

Y to the interact question.
hpux -is

passwd
Support Fatherhood - Stop Family Law
kunjuttan
Super Advisor

Re: Lost password

Thanks Mr.Michael Steele.Thats what I want to know.Can we able to login to single user mode and change the root password with passwd command???
VK2COT
Honored Contributor
Solution

Re: Lost password

Hello,

You did not provide details on the HP-UX
version you use.

If we assume you are using HP-UX 11.11,
and NOT having Boot Authentication product,
then resetting lost root password is as
simple as interrupting the boot process
and booting into single-user mode at
the console.

Then, you can run commands like passwd(1m)
to change the root's password without
knowing the old one.

Boot Authentication - site's security
policies that may require users to
authenticate before they can boot the system
into single-user mode. Previously, this
feature was only available on a system that
had been converted to Trusted Mode. This
product provides secure single-user mode
with root password protection, but without
the overhead of converting the system to
trusted mode (which will become obsolete
in HP-UX 11.41).

Othwrwise, if your HP-UX runs a newer release
than 11.11, just boot into single-user
mode and reset the root's password.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Michael Steele_2
Honored Contributor

Re: Lost password

Hi

Yes you can change the root password from single user mode.
Support Fatherhood - Stop Family Law
singh sanjeev
Trusted Contributor

Re: Lost password

is it not possible to change the root with equal privilage account id
Sanjeev Singh
Johnson Punniyalingam
Honored Contributor

Re: Lost password

>>Can we able to login to single user mode and change the root password with passwd command???<<

Yes, You can Change root password @ Single User mode, >>if you lost them <<<

Please check below link, procedure to change root password under single user mode

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1262439898448+28353475&threadId=119021
Problems are common to all, but attitude makes the difference
Dennis Handly
Acclaimed Contributor

Re: Lost password

>singh: is it possible to change the root with equal privilege account ID?

Yes, you can reset the password from any equivalent superuser. Either another superuser, sudo, RBAC, etc.
kunjuttan
Super Advisor

Re: Lost password

Thanx gurus.