Operating System - HP-UX
1826572 Members
3662 Online
109695 Solutions
New Discussion

Re: Unable to change root passwd.

 
SANTOSH S. MHASKAR
Trusted Contributor

Unable to change root passwd.

Hi all,

Yesterday I set password aging policies and general user account policies on
my server hp rp4440, HP-UX 11.11 trusted system using SAM.

Password Aging Policies

a] Time between password changes: 20 Days
b] Password expiration time: 30 Days
c] Password Expiration Warning Time: 5 Days
d] Password Life Time: 45 Days

General User Account Policies

a] Maximum Inactive Time: 30 Days
b] Unsuccessful Login Tries Allowed: 5

Now today I am not able to login from login prompt, the password is changed (may be).
Hence I tried to change the passwd (I can access root account from my linux PC through ssh without
passwd), I got this after entering last known passwd.

-----------------
[root@svr2] #passwd root
Changing password for root
Old password:
Sorry.
[root@svr2] #
------------------------

I then disabled both policies using SAM, but still it asks old passwd.
I even created another account with UID 0
from this account also I'm not able to change
root passwd.

Pl. guide me on this, it is very urgent.

-Santosh
3 REPLIES 3
Jannik
Honored Contributor

Re: Unable to change root passwd.

Create a new cryptation of the password:

#!/usr/bin/perl

print crypt($ARGV[0],"am");
print "\n";

Edit the file: /tcb/files/auth/r/root
with the new crypted password. This at least should give you a know password.

If the system is no longer trusted you should edit vipw or vi /etc/passwd or /etc/shadow or whatever the name :-).
jaton
SANTOSH S. MHASKAR
Trusted Contributor

Re: Unable to change root passwd.

Thsnks Jannik,

I edited protected database file and changed
field :u_pwd= , after this the system was not asking Old passwd.

Thanks.

-Santosh
SANTOSH S. MHASKAR
Trusted Contributor

Re: Unable to change root passwd.

Thanks