Operating System - HP-UX
1745857 Members
4624 Online
108723 Solutions
New Discussion юеВ

root passwd cannot be resetted in the trusted host

 
gany59
Regular Advisor

root passwd cannot be resetted in the trusted host

Hi folks,

I tried to reset the root passwd in the trusted hosts. i have installed sudo in the server so i got the root access bu sudo su command . If i try to change the root passwd i get an error as below..
# passwd root
Changing password for root
Old password:
Sorry.


Could u pls help me on this...
10 REPLIES 10
singh sanjeev
Trusted Contributor

Re: root passwd cannot be resetted in the trusted host

U may be putting worng passowrd..please check the password ...

Sanjeev Singh
Shibin_2
Honored Contributor

Re: root passwd cannot be resetted in the trusted host

Check you have entered the correct password. Also check, whether the account is active or locked out. If you can't remember the root password, reboot into single user mode and change the password.
Regards
Shibin
gany59
Regular Advisor

Re: root passwd cannot be resetted in the trusted host

Actually this was the o/p of my /tcb/files/auth/r/root file

Pls let me know which field is the encrypted password for root.

root:u_name=root:u_id#0:\
:u_pwd= :\
:u_bootauth:u_auditid#0:\
:u_auditflag#1:\
:u_minchg#0:u_exp#7776000:u_life#12960000:u_succhg#0:\
:u_unsucchg#1260297923:u_pw_expire_warning#604800:u_pswduser=root:u_sucl
og#1260297498:\
:u_suctty=pts/4:u_unsuclog#1260287392:u_maxtries#0:u_lock@:\
:chkent:
Tingli
Esteemed Contributor

Re: root passwd cannot be resetted in the trusted host

It seems that you haven't put in the correct root password and it failed.
Patrick Wallek
Honored Contributor

Re: root passwd cannot be resetted in the trusted host

The field for the encrypted password is:

:u_pwd= :\

Now, it seems that there is a space there, which is an INVALID password. To eliminate the password completely edit the file and make that line look like:

:u_pwd=:\

There should be NO SPACES anywhere on the line.

After you do that you should not be prompted for the old password when you change the password.
Renu_1
Occasional Advisor

Re: root passwd cannot be resetted in the trusted host

Hi Gany

Please try this
Untrust the system
/usr/sbin/tsconvert -r

Please use the following command
#passwd -f root
#passwd root

After changing the root passwd, Please bring the system in trusted mode.

#/usr/sbin/tsconvert

Note: Before carrying on this procedure, Please make sure no else is still logged into the server.

Hope this will help you.
Patrick Wallek
Honored Contributor

Re: root passwd cannot be resetted in the trusted host

>>Please try this
>>Untrust the system
>>/usr/sbin/tsconvert -r

Please don't!!!!! There's no reason to untrust the system at this point.

Jacques Carriere
Regular Advisor

Re: root passwd cannot be resetted in the trusted host

Whay don't you copy /tcb/files/auth/r/root from another trusted server to unlock this server?


Jacques
Sp4admin
Trusted Contributor

Re: root passwd cannot be resetted in the trusted host

I've had this problem in the past and did what Patrick said. I remove the text out of the /tcb/files/auth/r/root.

example:

Before:
:u_pwd=bmKGBN80.C4NsD8dfl40l3kYL/F7AIW/sw.:\

After:
:u_pwd=:\

Sp,