Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to set the user password to never expire in linux?

Shulou Source: shulou.com Published: 2022-06-03 06:04:25 09月21日 Update

Open the terminal, enter the command: [sudo gedit / etc/login.defs], enter the administrator password

[PASS_MAX_DAYS] modify it to [99999] and click Save. (valid only for users created after setting, and the expiration time of existing user passwords remains unchanged)

Create a user [sudo useradd + user name] and create a user password [sudo pawwsd + user name]

Just enter the password.

These are the details of how to set user passwords to never expire under linux. Please pay attention to other related articles for more information.

Tags: User password input user name never valid content command that is article time more administrator terminal storage management Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Docker NVidia OPPO Reno Huawei