How do I change the expiry date of a user in Linux?

How do I change the expiry date of a user in Linux?
Answer
Change password expiry in Linux
  • Listing password aging for user: chage command with option -l shows the password expiry details of a user.
  • Change the number of days to expire: Use -M option and provide the number of days for expiry.
  • Change the password to never expire:
  • Change account expiry to specific date:
 

Tìm kiếm

Back
Top