"Linux Security" Security Password policy setting

Source: Internet
Author: User

Command:

Vim/etc/login.defs

Default settings:

# Password Aging controls:##    Pass_max_days Maximum Number of days    a password is used.# pass_min_days Minimum number of days    allowed bet Ween password changes.#    pass_min_len    Minimum acceptable password length.#    pass_warn_age    number of Days warning given before a password expires. #PASS_MAX_DAYS    99999pass_min_days     0 Pass_min_len     5 pass_warn_age     7

Analytical:

Pass_max_days---Password valid days, maximum how long to change the password.
Pass_min_days 1--As soon as the password changes, the password can be changed again.
Pass_min_len 8--The minimum set length of the password.
Pass_warn_age 7--a few days before the password expires, a warning message is issued.

"Linux Security" Security Password policy setting

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.