Operating System - HP-UX
1833712 Members
1937 Online
110063 Solutions
New Discussion

root account disable, whar can I do for enable?

 
SOLVED
Go to solution

root account disable, whar can I do for enable?

Folks,
Can some one help me, I have a HP Workstation and I need to know who enable and reset the root account password?

Thanks
Medina
6 REPLIES 6
Sundar_7
Honored Contributor
Solution

Re: root account disable, whar can I do for enable?

If you dont know the password then only way would be to reboot the system in single user mode and change the password.

if you know the password but the root account is locked then you can unlock by logging in to the console as root.

To boot in single user mode

1) reboot the system
2) Press any key to discontinue the autoboot
3) type "BO"
4) Interact with ISL > Y
5) ISL> hpux -is
6) You will get the # prompt. use the passwd command to change the password.

Learn What to do ,How to do and more importantly When to do ?

Re: root account disable, whar can I do for enable?

Thanks for you answer

I reboot the WS in single mode , but when try to change the password they prompt for old password nad when type the old password they give me a messages like "sorry".

I try before enable with "modprpw -k root", thats is correct to enable root?

I apreciate your help.

Re: root account disable, whar can I do for enable?

Thanks for you answer

I reboot the WS in single mode , but when try to change the password they prompt for old password nad when type the old password they give me a messages like "sorry".

I try before enable with "modprpw -k root", thats is correct to enable root?

Thanks
Sundar_7
Honored Contributor

Re: root account disable, whar can I do for enable?

Yes modprpw -k root is the command to unlock the account.

But you dont have to execute modprpw if you logon to the console (atleast not in 11i).

So, you forgot the root password or trying to unlock the account ?

If trusted system, passwd will ask for the old password even for root.

Once in single used mode, edit /tcb/files/auth/r/root file and delete the value for the field u_pwd and try changing the password
Learn What to do ,How to do and more importantly When to do ?
Sundar_7
Honored Contributor

Re: root account disable, whar can I do for enable?

1) Reboot in single user mode
2) # mount /usr
# mount /var
# vi /tcb/files/auth/r/root
delete the value next to u_pwd
# passwd root
New password:

-- Sundar
Learn What to do ,How to do and more importantly When to do ?

Re: root account disable, whar can I do for enable?

Thanks a lot Sundar..

Is working now..

I appeciated your help