We will see how to change root account password in Kali Linux. And also to change password expiry information for user account.

Requirement:

  • Linux terminal

Step by step how to:

  1. Open your terminal and type
    passwd
    art1
    Enter your new password twice.
  2. To get more info about password aging for root user type
    chage –l root
    art2
  3. To disable password aging for user g0tm3 type
    chage -M 99999 g0tm3
    art3
  4. To set password expiration information for user g0tm3 type
    chage -M 69 -m 2 -W 2 g0tm3
    art4

Leave a Reply

Your email address will not be published. Required fields are marked *