1833778 Members
2250 Online
110063 Solutions
New Discussion

Re: Password Recovery

 
SOLVED
Go to solution
candyman_1
Advisor

Password Recovery

Hi all,

I have a trusted system and all the passwords has been expired. I need to restore all the passwords again. what all steps i need to take here. its hp-ux 11.11.

Thanks

Candyman
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: Password Recovery

Shalom Candy,

You would need to run a root script.

make a list of users

while read -r username
do
passwd -d $username
passwd -f $username
done < list

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
candyman_1
Advisor

Re: Password Recovery

Hi steven..

I have a full system backup.... can I restore the /tcb direcory? will that work.
candyman_1
Advisor

Re: Password Recovery

Hi,

This as actually done duu to system was changed to untrusted from trusted and back to trusted system.... this expired all the passwords. but will the restore of /tcb directory restore the old passwords? cuz i need the old passwords to be restored.

Thanks

candyman
rajdev
Valued Contributor

Re: Password Recovery

Hi,

I think the passwords have expired as you change to trusted system.

you can run following command to disable the password expiry/aging

#/usr/lbin/modprpw -m mintm=0,exptm=0,lftm=0 username

Run for one user and if its ok, then you can do the same for other users.

once everything is fine, you may again want to enable the password aging, see modprpw manpage for the details.

Regards,
Bill Hassell
Honored Contributor

Re: Password Recovery

This is absolutely normal (all passwords expire when converting to Trusted) and there is an ultra-simple fix:

/usr/lbin/modprpw -V

That's UPPERCASE V. When SAM does the conversion, this step is done automatically. Note that the passwords are still the same, only the expiration time is refreshed. man modprpw


Bill Hassell, sysadmin