Services and User Management

A contractor's account, contractor1, must stop working automatically after 2025-12-31, regardless of how recently the password was changed. Which command accomplishes this?

Show the answer

Correct answerD. chage -E 2025-12-31 contractor1

The -E option sets the account expiration date, after which logins are refused regardless of password age. The -M option only caps password lifetime in days, so the account would remain usable after any password change.