Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

It seems like password aging limit is responsible for regular change of password.But my questions are,

  1. What exactly it is and which password does it change?
  2. How can I configure it to change the password regularly, say every week.

If necessary, note that I use Ubuntu 12.10

share|improve this question
    
related: askubuntu.com/questions/105040/… –  Takkat Feb 21 at 15:46
1  
I found this link. It may help you:security.stackexchange.com/questions/4704/…. –  user260119 Mar 20 at 8:34
add comment

2 Answers 2

up vote 3 down vote accepted

Password aging is a mechanism that allows the system to enforce a certain lifetime for passwords. While this may be moderately inconvenient for users, it ensures that passwords are changed occasionally, which is a good security practice. Most Linux distributions do not enable password aging by default, but it's very easy to enable.

By editing /etc/login.defs, you can specify a few parameters to set the default settings for password aging:

PASS_MAX_DAYS   99999
PASS_MIN_DAYS   0
PASS_WARN_AGE   7

change These values as you want. change 9999 to 7 to enforce all users to change their password every 7 days.

source

share|improve this answer
add comment

It is probaly called "password age limit". You can set it with the x option from passwd

passwd -x 7 $USER

will force you to issue a new password for the current user every 7 days.


From the manual

-x, --maxdays MAX_DAYS

Set the maximum number of days a password remains valid. After MAX_DAYS, the password is required to be changed.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.