How to set user password to never expire in Linux

王林
Release: 2020-01-11 16:03:47
Original
9397 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!