1833788 Members
2506 Online
110063 Solutions
New Discussion

Re: set password expiry

 
SOLVED
Go to solution
aruns_s
Frequent Advisor

set password expiry

Hi
In a non trusted system. can i make passowrd expiry once the account is created?



3 REPLIES 3
Arunvijai_4
Honored Contributor
Solution

Re: set password expiry

Hi Arun,

Check this out,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=948182

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: set password expiry

See man passwd for -n -x options.

-n min Determine the minimum number of days, min, that must
transpire before the user can change the password.


-x max Determine the maximum number of days, max, a password
can remain unchanged. The user must enter another
password after that number of days has transpired,
known as the password expiration time.


Example:

Force user2 to establish a new password on the next login which will
expire in 70 days and prohibit the user from changing the password
until 7 days have transpired:

passwd -r files -f -x 70 -n 7 user2

--
Muthu
Easy to suggest when don't know about the problem!
Peter Godron
Honored Contributor

Re: set password expiry

Hi,
you can expiry the password on an account by:
passwd -f account_name
This marks the password as expired and forces the user to change it the next time they log on.
To set expiry policy, such as time between password changes etc. you can use sam or look at man passwd.