Steps to turn off root remote login on AIX

  
                

In the Linux system, in order to ensure the installation of the system, you need to prohibit the remote user from remote login. It is usually divided into several steps. How to shut down the root remote login in the AIX system, is it the same as Linux? The following small series will introduce you to AIX to close the root remote login method.

Step

aix users to extend most of the information in the /etc /security /user of this text file. You can modify:

login=false The user cannot log in to the system

rlogin=false The user cannot log in to the system remotely

su=false Other users cannot switch to this user

If you have special needs, simply use smitty lockuser to lock the specified user.

Disable telnet login

smit chuser

-"root

- "User can login REMOTELY(rsh,tn,rlogin) =false

Disable ssh login

vi /etc/ssh/sshd_config

PermitRootLogin no

Restart ssh service

stopsrc -s sshd

startsrc -s sshd

If you don't want root to log in directly, you can log in with other users and su to the root user.

Another problem is that I have encountered a test user, for example, entering the password incorrectly, causing it to fail to log in. This can be logged in locally and then the number of login errors is clear.

chuser unsuccessful_login_count=0 test

The above is the introduction of AIX prohibiting root remote login. You need to disable telnet login, ssh login, restart ssh service, and then root remote login. Forbidden.

Copyright © Windows knowledge All Rights Reserved