Linux Account password Security policy

Source: Internet
Author: User
Objective

For server security, the server's account password is a very important thing

We can choose to cancel the account password login, only use the public key to log in, but sometimes it may not be convenient

Here to tell you how the account password management more secure

One, the maximum number of days to use the account password
Modify Pass_max_days in/etc/login.defs 1095

The same password can only be used for up to 1095 days

Second, password modification minimum interval days
Modify Pass_min_days in/etc/login.defs 7

The minimum password will be 7 days for a change.

Third, account inactivity maximum number of days
Useradd-d-F 1095

If there is no activity within 1095 days, the account is unregistered

Linux Account password Security policy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.