1834038 Members
2409 Online
110063 Solutions
New Discussion

User account question

 
SOLVED
Go to solution
dictum9
Super Advisor

User account question


I created a number of accounts and ran "passwd -f " on them, prompting the user to change the password upon first login.

Now I would like to undo this feature, and just keep the original password I set.
Is it possible to do via /usr/lbin/modprpw?

2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: User account question

No, there is no modprpw command to update the last password change time (which is what would be required) BUT you can write a script using Perl, awk, or sed to update this value in each users /tcb/files/auth/[A-z]/username file. The value is actually stored as the number of seconds since 1-Jan-1970 00:00:00 UTC (epoch seconds).
If it ain't broke, I can fix that.
Tim Nelson
Honored Contributor

Re: User account question

That is a good one..

I would guess that passwd -f would reset the expire field to "now". Try to compare that with an account you did not do this to.

getprpw -m exptm or lftm

one or either can be reset back to default ( -1 ).. see if that works