In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to solve the problem of Centos password cycle setting effective". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the problem of Centos password cycle setting effective".
Some time ago, some servers were reinforced according to the requirements of the company, and one of the reinforcement contents is to set the user password cycle time. Facts have proved that this is of no use to the task. Here is a small test in a virtual machine environment:
First, log in to the server and check / etc/login.def
Then check / etc/shadow again
It is found that the two password strategies are exactly the right one.
Then, we modify / etc/login.def
On the first line, the password can be used for up to 90 days, and there will be a reminder after 90 days.
On the second line, the password can be used for a minimum of 10 days, and the password cannot be changed within 10 days.
Third line, password complexity, at least 8 bits
On the fourth line, the password will be reminded for 5 days after it expires. If the password has not been changed after 5 days, the account will be frozen and invalid.
After the modification, check / etc/shadow and find that there is no change. Then we add an account to useradd test and find that the newly added account adapts to the modified password cycle setting.
After repeated tests, it is found that whether it is to add an ordinary account or an administrator account, or to modify the options of PASS_MIN_DAYS, PASS_MIN_LEN and PASS_WARN_AGE, it is only applicable to the accounts that are added later, and there is no impact on the accounts that already exist.
Thank you for your reading, the above is the content of "how to solve the problem of Centos password cycle setting effective". After the study of this article, I believe you have a deeper understanding of how to solve the problem of Centos password cycle setting effective problem, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.