In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Today, what the editor shares with you is a detailed introduction of the command history automatic logout and account security control in Linux Centos7. I believe most people do not know much about it. In order to make you understand better, the editor summarized the following content for you. Without saying much, let's move on.
one。 Account security control
The user account is the identity certificate or identity of the computer user, and everyone who wants to access the system resources must rely on it to use
Only the account number can access the computer. In the Linux system, a variety of mechanisms are provided to ensure the legitimacy and security of user accounts.
Use it.
1. System account cleaning *
Hattr + I / etc/passwd / etc/shadow
Lock users and password files
Lsattr / etc/passwd / etc/shadow
View file status
Chattr-I / etc/passwd / etc/shadow
Unlock user and password file
two。 Password security control
In an insecure network environment, in order to reduce the risk that passwords are guessed or broken by violence, users should get into the habit of changing passwords regularly and avoid using the same password for a long time. The administrator can limit the maximum valid days of the user's password on the server side. For users whose password has expired, they will be required to reset the password when logging in, otherwise the login will be refused.
Vim / etc/login.defs
PASS_MAX_DAYS 30
Valid for new users only
Chage-M 30 wangwu
Applicable to existing users
Chage-d 0 user name
Change the password next time you log in
But it must be discontinuous Arabic numerals and letters.
More than eight, or you can't change the password.
3. Automatic logout of command history
Vim / etc/profile system environment variable configuration file
Source / etc/profile makes your profile effective
Vim / etc/profile system environment variable configuration file
Export TMOUT=15
Source / etc/profile makes your profile effective
So much for the automatic logout of Linux Centos7 command history and account security control. I hope the above content can be helpful to you and learn more knowledge. If you like this article, you might as well share it for more people to see.
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.