Chage Command

GEEKS !!

Here comes a small hack with date command and its excellent in applying password aging policies with chage command.

Suppose you had been asked to enforce a account expiration date for a local user on your Linux box. Your manager wants that the account should be expired right after 8 months.

You know, you can use the chage command for the job, that you have learned during your RHCE Certification training days.

But who is going to do calculations?

Check the illustration.

Account Expiration with chage and date

Account Expiration with chage and date

Advertisements