Prohibit remote root login on AIX

Source: Internet
Author: User

Prohibit remote root login on Aix
 
The extended information of aix users is mostly in the/etc/security/user text file. You can modify:
Login = false users cannot log on to the system
Rlogin = false users cannot log on to the system remotely.
Su = false other users cannot switch to this user
If you have special requirements, simply use smitty lockuser to lock the specified user.
 

Disable telnet Logon
 
Smit chuser
 
-> Root
 
-> User can login REMOTELY (rsh, tn, rlogin) = false
 
Disable ssh Login
 
Vi/etc/ssh/sshd_config
 
PermitRootLogin no
 
Restart the ssh service
 
Stopsrc-s sshd
 
Startsrc-s sshd
 
 
If you do not allow the root user to log on directly, you can log on with another user and then su to the root user.
 
Another problem is that I have encountered a user named test who mistakenly entered the password multiple times and thus failed to log on. This allows me to log on locally and then identify the number of Logon errors.
 
Chuser unsuccessful_login_count = 0 test

Recommended reading:

How to switch the root user in Ubuntu

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.