Operating System - HP-UX
1832646 Members
2689 Online
110043 Solutions
New Discussion

Set an account and password to not expire on Trusted System

 
N Ward
Regular Advisor

Set an account and password to not expire on Trusted System

Hi,

I am trying to get an account and password (non-privileged) to not expire but keep having problems with it expiring. I have set everything I see relevant using modprpw and yet I still have problems. Does anyone have any recommendations for what should be done.

Also are any changes dynamic, do they take effect on the account immediately?
3 REPLIES 3
Bill Hassell
Honored Contributor

Re: Set an account and password to not expire on Trusted System

Changes are immediate but only effective at login. From the man page for modprpw:

"No aging is present if the following 4 database parameters are all zero: u_minchg, u_exp, u_life, u_pw_expire_warning."

So the complete modprpw command is:

modprpw -m mintm=0 -m exptm=0 -m lftm=0 -m expwarn=0 billh

And check the values with:

getprpw -m mintm,exptm,lftm,expwarn billh


Bill Hassell, sysadmin
N Ward
Regular Advisor

Re: Set an account and password to not expire on Trusted System

Hi thanks for your reply, thats what I've done. I believe the problem I had today is not related to expiry, I've been wrestling with this problem for a while, I think using that set of switches has fixed it. I'll close this thread off for now. Thanks for your reply anyway..
N Ward
Regular Advisor

Re: Set an account and password to not expire on Trusted System

Solution is as above, already implemented.