Operating System - HP-UX
1832983 Members
2872 Online
110048 Solutions
New Discussion

How to change Password experation date.

 
SOLVED
Go to solution

How to change Password experation date.

Hi All,

Which command is use to change password experation date.

which file is use to save password expiration details.
5 REPLIES 5
Hari PN
Occasional Advisor
Solution

Re: How to change Password experation date.

Check the password status using -
#passwd -s username
modify the expiration date -
# usermod -e mm/dd/yyyy username.

Please try this.
Ganesan R
Honored Contributor

Re: How to change Password experation date.

Hi,

If it is trusted system it can be easily set using SAM. if you want to set it through command line use modprpw command.

All protected password database will be there in /tcb/files/auth/*
Best wishes,

Ganesh.
Danny Petterson - DK
Trusted Contributor

Re: How to change Password experation date.

passwd -x

...where
... is, doh ;-) - the name of the user hehe

Take care.
Sandeep_Chaudhary
Trusted Contributor

Re: How to change Password experation date.

passwd -x username
Bill Hassell
Honored Contributor

Re: How to change Password experation date.

For standard systems, only the passwd command can change the expiration date (a hacker can edit /etc/passwd directly but I don't recommend it). There is no default expiration for a standard system. For a Trusted system, there is a system-wide value which you can set in SAM or use the modprdef command as in:

/usr/lbin/modprdef -m exprtm=60

New users will inherit this value.


Bill Hassell, sysadmin