Operating System - HP-UX
1837523 Members
3706 Online
110117 Solutions
New Discussion

Re: root password expired, & can't change it!

 
SOLVED
Go to solution
Ahmed_58
Regular Advisor

root password expired, & can't change it!

Just verified with HPUX 11.11 on A class system.

Hi
We are using HP 11.00, root password expired,I login on console and it goes through the routine of saying that password has expired, enter Old password and I enter the passord again but drop me to login prompt!!!
Any idea way? and how to get to root?
by the way it is a trusted system.

Regards,
Ahmed
10 REPLIES 10
Arunvijai_4
Honored Contributor
Solution

Re: root password expired, & can't change it!

Hi Ahmed,

You can reset the root by login into single user mode,

ISL> hpux -iS

Also, check this thread

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=856294

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: root password expired, & can't change it!

Your root account password is expired. Hope you forgot the old password. If enter it correctly then it will give prompt for new passwd.

Leave that, try to start machine in single user mode.

1) Go to console with console ip
2) reboot machine
3) Interrupt at boot prompt and give as boot -IS

will lead to single user mode. There you can change password directly as,

# passwd

changes. Reboot in your run level.

--
Muthu
Easy to suggest when don't know about the problem!
RAC_1
Honored Contributor

Re: root password expired, & can't change it!

You will have to boot into single user mode and change it. In case you have alternate root id, you can do with that too.
There is no substitute to HARDWORK
Indira Aramandla
Honored Contributor

Re: root password expired, & can't change it!

Hi Ahmed,

If you root password has expired, then when it prompts you for the old password if you enter the correct one then it will let you change the password.

If you do not remember the password then you will have to change the password in single user mode.


Indira A
Never give up, Keep Trying
Devender Khatana
Honored Contributor

Re: root password expired, & can't change it!

Hi Ahmed,

While trying to login through console entering previous password and new password when prompted shall be able to take you to OS prompt. If this does not help then booting to single user mode is the only option left.

Is it a trusted system?
Can you do su to root from some other user?

HTH,
Devender
Impossible itself mentions "I m possible"
Arunvijai_4
Honored Contributor

Re: root password expired, & can't change it!

Hi Ahmed,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=856294
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=956345

Check these threads for more information.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Peter Godron
Honored Contributor

Re: root password expired, & can't change it!

Ahmed,
is the password expired or the account locked?
If the password is expired you should be able to reset, if the account is locked, console access should get you in.
After you have changed the password on the console, do you try to login with the new password?

If you have sudo access you may want to try:
sudo /usr/lbin/modprpw -k root

Ahmed_58
Regular Advisor

Re: root password expired, & can't change it!

Hi all,
I'm sure the password is correct and thats way asking me to enter the Old password. put when entering the password again drop me out to login prompt.

anyway I'll go to single mode, but is nice to know the way!

Reagrds,
Ahmed
Muthukumar_5
Honored Contributor

Re: root password expired, & can't change it!

hats way asking me to enter the Old password. put when entering the password again drop me out to login prompt.


>>>

Something strange here. If you did not enter a correct password then trusted system will make an error not the login again. Hope some modules are used in /etc/pam.conf. Check that also.

--
Muthu
Easy to suggest when don't know about the problem!
Ahmed_58
Regular Advisor

Re: root password expired, & can't change it!

Thanks to all,
I use single mode and manage to change the password.
Ahmed