Common Linux security settings-general Linux technology-Linux technology and application information. For more information, see the following section. Some basic small settings
Limited account logon times
Add/etc/pam. d/system-auth:
Auth required pam_tally.so deny = 3
Account required pam_tally.so
(Only root can help unlock the lock)
/Etc/login. defs
PASS_MAX_DAYS9999 generally sets the password to 90 days. 9999 to disable this function, use it for an indefinite period of time.
PASS_MIN_DAYS0 is generally set to 1 day, And the password is used for the minimum number of days. That is, the password can be modified one day later.
PASS_MIN_LEN5 password length. Generally, 8 bits are set.
Set a warning one week before PASS_WARN_AGE7 password becomes invalid.
Control the password Usage Frequency
/Etc/pam. d/system-auth
Password required pam_unix.so remember = 3 use_authtok md5 shadow
Password sufficient pam_unix.so remember = 3 use_authtok md5 shadow
Generally, it is set to 24 or more times.
File directory permission settings
$ HOME 700
/Etc/passwd
/Etc/shadow, these are all 600
Root/. rhosts remote access control file
Root/. netrc FTP script file
/User
The other has no permission, and the common user can have the read permission. For example, you can set permissions for individual services in Apache.
/Var
/Tmp 777
Snmpd. conf 600
Three major log systems
Connection log/var/log/wtmp/var/run/utmp
Process logs
Error log/var/log/messages
Generally, dual-Machine backup is used. There is a lot of online information.
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