LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting 'Password Inactive' field to 1 after setting maximum passwd age ? (http://www.linuxquestions.org/questions/linux-newbie-8/setting-password-inactive-field-to-1-after-setting-maximum-passwd-age-4175463967/)

Grtyop 05-29-2013 11:32 AM

Setting 'Password Inactive' field to 1 after setting maximum passwd age ?
 
I set a user, 'testus1' to have his password change every 100 days with a 12 days warning.

Code:

chage testus1 -M '100' -W '12'
I then entered chage testus1 to check if the changes are made.

There's this field called 'Password Inactive [-1]' . Do I have to change this to 1 for the changes to be active ?

From the man page, "Passing the number -1 as MAX_DAYS will remove checking a password's validity. " .

Not sure if the -1 in the 'Password Inactive [-1]' affects the changes made.

chrism01 05-30-2013 07:49 PM

That's for the -M switch and you used 100, so you should be fine.
Can you post
Code:

change -l testus
Lowercase L switch


All times are GMT -5. The time now is 03:10 AM.