Summary of AIX account security settings this article mainly summarizes the account security policies and settings in the AIX operating system, hoping to provide a reference for those who are concerned about AIX system security. Www.2cto.com 1. account and password security settings 1) delete or comment out useless accounts; 2) it is recommended to lock accounts other than root...
AIX account security settings
This article mainly summarizes the account security policies and settings in the AIX operating system, and hopes to provide a reference for those who are concerned about the security of the AIX system.
Www.2cto.com 1. account and password security settings
1) delete or comment out useless accounts;
2) we recommend that you lock accounts other than root accounts that are not commonly used.
# Chuser account_locked = true user1 # locking user1 users
Www.2cto.com
3) modify the default password policy (example)
# Vi/etc/security/user
2. change the logon policy as defined in/etc/security/login. cfg. you can adjust the logon policy in the following three ways:
1) # vi/etc/security/login. cfg
Logindelay = 2 * the prompt is displayed after the logon fails after a delay of 2 seconds.
Logindisable = 5*5 failed logons lock the port
Logininterval = 60 * The port is locked only when logininterval fails five times within 60 seconds.
Loginreenable = 30 * Port unlocked 30 minutes later
Logintimeout = 60*60 seconds no activity will exit the current user
2) # lssec-f/etc/security/login. cfg-s default * list default logon policies
# Chsec-f/etc/security/login. cfg-s/dev/lft0-a logindisable = 5 * after five consecutive failed logins, lock the port lft0
3) view and change the logon policy (smit chsec) www.2cto.com through smit
3. prohibit the root account from establishing a remote connection
1) restrictions on remote logon (telnet or rlogin) of root users can be specified in the file/etc/security/user.
# Vi/etc/security/user
Rlogin = false
Or use the lsuser and chuser commands.
# Lsuser-a rlogin root * view the root rlogin attribute (true by default)
# Chuser rlogin = false root * disable remote root login
2) prohibit the root account from ftp to the system, edit/etc/ftpusers, and add all accounts that wish to be banned from ftp login to this file.
# Vi/etc/ftpusers
Root
3) prohibit ssh from the root account to the system and edit/etc/ssh/sshd_config.
Protocol 2
PermitRootLogin no supplement: special emphasis should be placed on the control of root privileges:
1. strictly limit the number of people who use the root privilege;
2. the root password should be changed by the system administrator in an undisclosed period;
3. different machines use different root passwords;
4. even the system administrator should log on as a common user, and then use the su command to enter the privilege;
5. the PATH environment variables used by the root user are significantly related to system security.
Security logs are an important guarantee for system security. experienced system administrators often use them for security checks. The Su command execution results are stored in/var/adm/sulog. user logon and logout logs are stored in/var/adm/wtmp and/etc/utmp, you can run the "who" command to view the logs. invalid and failed logon records are stored in/etc/security/failedlogin. you can also run the "who" command to view the logs. unknown logon names are recorded as unknown. 4. account locking and unlocking www.2cto.com
For example, if the password is lost multiple times and the locked prompt is displayed
Password:
530-There have been too unzip unsuccessful login attempts; please see
The system administrator.
1. if you can log on to the ROOT account, it is relatively simple.
Use this command to unlock
# Chsec-f/etc/security/lastlog-a unsuccessful_login_count = 0-s user1
You can unlock a user by resetting the number of unsuccessful logins. 2. if the user is locked through settings, the user can be unlocked in this way.
# Smit user 3. command unlock # chuser account_locked = TRUE oracle locks users
# Chuser accout_locked = FALSE oracle locks the user, but this locking and unlocking method is different from locking the user due to multiple wrong password logon failures. 4. if your current user is locked, you can also log in with another unlocked account and switch to the ROOT account to unlock 5. if the ROOT account is locked, it is troublesome to use the rescue disc to reset the password or use the correct password after the account is unlocked. 5. set passwords 1. set strong passwords
Good passwords are the first effective line of defense against unauthorized access to the system. they are of the following types:
Combination of uppercase and lowercase letters
A combination of letters, numbers, or punctuation marks. In addition, they can contain special characters, such
~! @ # $ % ^ & * ()-_ = + [] {}|\;: '",. <>? /<Space>
Pipeline is not written in anything that can be clearly visible to others.
If the/etc/security/passwd file is used, the maximum length is 7 characters and 8 characters.
Characters (authentication performed using the registry like LDAP can exceed this maximum length
Password)
Tokens are not real words that can be found in the dictionary.
The delimiter is not an arrangement of letters on the keyboard, such as qwerty.
The delimiter is not a reverse spelling of a real word or a known permutation pattern.
The secret does not contain any personal information related to yourself, your family, or your friends.
The token is not in the same mode as the previous password.
Token can be entered quickly, so that the person on the edge cannot determine your password
2. set password policies
Password prediction is one of the most common methods of attacks. Therefore, control and monitor your password restrictions
Policy is indispensable.
Token set a good password
Authorization # vi/etc/security/user to edit the password policy, refer to the previous parameters for setting
Secret uses the/etc/passwd file. Traditionally, the/etc/passwd file is used to record every registered user with system access, you must have an account in each system to gain access to the system.
Hide user name and password
To ensure higher security, make sure that the user ID and password are invisible in the system.
.
Recommended password options
Force periodic password change
Quota extended password limit
3. for the BUGAIX 5.3 system with the password bits, even if you have set 12-bit passwords, you can log on to the system with only the first eight digits. this is a small BUG, because AIX 5L only checks the first eight passwords, this is always a limitation of AIX. LPA (Loadable Password Algorithm) is introduced not until AIX 5L V5.3 TL7 and AIX V6.1, eliminating the restriction that the Password is valid only 8 characters long, the maximum password length varies with various LPA algorithms. The maximum password length can reach 255 bits. However, the LPA function must be activated. The activation command is as follows: www.2cto.com # chsec-f/etc/security/login. cfg-s usw-a pwd_algorithm = ssha256. finally, attaching importance to security is the foundation of everything.
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