Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Please tell me how to set a remainder to change the passwords for every 45 days on linux and unix machines.


share|improve this question

migrated from Jun 13 '11 at 14:15

This question came from our site for professional and enthusiast programmers.

Should be over at – Michael Jun 13 '11 at 14:05
up vote 2 down vote accepted

Take a look at chage command in Linux.

share|improve this answer
Hi Anubhava can you please provide one example with change command and eloborate,I aleardy used passwd command for changing the password can I use the same for get warning messages for password expiry. – srihari Jun 13 '11 at 14:20
@srihari: Here are some examples of change command:… – anubhava Jun 13 '11 at 14:27

Also look at the -w and -x of the passwd command - at least on linux, not sure about other platforms.

share|improve this answer
Thanks Duck for the information. – srihari Jun 13 '11 at 14:22
Works in Solaris – Duane Jun 16 '11 at 0:08

Your Answer


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.