Operating System - HP-UX
1832670 Members
3215 Online
110043 Solutions
New Discussion

How to set Password expiration date on HP-UX

 

How to set Password expiration date on HP-UX

Hi All,

Which file is use to set password expiration date.


Thanks in adv.
3 REPLIES 3
Ivan Krastev
Honored Contributor

Re: How to set Password expiration date on HP-UX

All password aging values are located in the /etc/passwd file - http://docs.hp.com/en/B3921-90010/passwd.1.html . When initially account is created default values are using from /etc/default/security file - http://docs.hp.com/en/B3921-90010/security.4.html

regards,
ivan
Ganesan R
Honored Contributor

Re: How to set Password expiration date on HP-UX

Hi,

If it is trusted system you can easily set globally or user wise.

If it is non-trusted system you will have to set it in /etc/default/security.
Best wishes,

Ganesh.
daamaya
New Member

Re: How to set Password expiration date on HP-UX

If it is a trusted system and you'd like to do it for a single user, then the command is this:

/usr/lbin/modprpw -k -m exptm=PWDAGE

or you can do it globally like so:

/usr/lbin/modprdef -m exptm=PWDAGE