Wednesday, July 1, 2015

RHEL - Set password expired on specific date

There is a situation where you have to specify the account to be expired on certain date. You may have a consultant who has task for say 2 weeks.

You can set password expires on a specific date.

# chage -E $(date +%F -d "today + 2 weeks") ramsing

Will expire account 2 weeks from now.

No comments:

Post a Comment