Operating System - HP-UX
1834736 Members
3102 Online
110070 Solutions
New Discussion

How to update spwchg value in protected password database

 
Henk Hols_1
Occasional Contributor

How to update spwchg value in protected password database

Here's my problem I hope someone can help me with.

I need to update the mintm and exptm values for a couple of hundred users.
During a testrun I found that when setting these values (modprpw), the user affected is forced to enter a new passwd (expired) when the time elapsed since spwchg (last successful password change time) is greater than exptm.

Thing is that this forced passwd change is no option.
Apparently this spwchg cannot be updated through the modprpw, and so I altered the u_succhg field (setting it to today) in the /tcb/files/auth/*/* file.

This seems to work but I am not sure if there is any other more 'decent' way to do this change?

If not, changing this field for a large number of users is quite an (risky) operation to do manually.

Maybe someone can help me with a script to do so?

Note that this field value not always has the same length, ie it can have the value '0', or that it sometimes even not exists, and has to be added.

Thx in advance,
---
Henk
2 REPLIES 2
Jack C. Mahaffey
Super Advisor

Re: How to update spwchg value in protected password database

Have you also tried setting password age to zero?

/usr/lbin/modprpw -l -v

jack
RAC_1
Honored Contributor

Re: How to update spwchg value in protected password database

After your changes,
/usr/lbin/modprpw -V
There is no substitute to HARDWORK