Home >Operation and Maintenance >Linux Operation and Maintenance >How to set user password to never expire in Linux

How to set user password to never expire in Linux

王林
王林Original
2020-01-11 16:03:479615browse

How to set user password to never expire in Linux

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

How to set user password to never expire in Linux

[PASS_MAX_DAYS 】Change here to 【99999】, click Save. (Only valid for users created after setting, the expiration time of existing user passwords remains unchanged)

(Online video tutorial sharing: linux video tutorial)

How to set user password to never expire in Linux

At this time, create a user [sudo useradd username] and create a user password [sudo pawwsd username]

How to set user password to never expire in Linux

Enter the password.

How to set user password to never expire in Linux

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of How to set user password to never expire in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn