What if I want to remove expiration?

QuestionsQuestions8 SkillsProUser Account ManagementSep, 20 2025
0113

If you want to remove the expiration date for a user account in Linux, you can use the chage command to set the account to never expire. Here’s how to do it:

  1. Open a terminal.

  2. Run the following command, replacing username with the actual username:

    sudo chage -E -1 username

This command sets the expiration date to "never," allowing the user account to remain active indefinitely.

  1. To verify that the expiration date has been removed, you can check the account details with:

    sudo chage -l username

The output should indicate that the "Account expires" field shows "never," confirming that the account will not expire.

0 Comments

no data
Be the first to share your comment!