Enable or Disable telnet to user in AIX

Enable or Disable telnet to user in AIX

telnet is one of the remote access tool to login to UNIX / Linux Operating System. AIX offers configuration of telnet to either enable or disable the user remote telnet access to Operating System.
 

Enable telnet

Login as root user and edit the file vi /etc/inetd.conf and then remove the # from the line as given below

#telnet  stream  tcp6    nowait  root    /usr/sbin/telnetd      telnetd -a

after removing # comment from save and exit the file. Note that the change should be done using the root user else it will throw error ex: 0602-065 The file has read permission only.

Refresh the inetd service

refresh -s inetd

After refreshing the inetd service we should be able to login to telnet. If still unable to login the as root user type "smit user" then select "Change / Show Characteristics of a User" type the username that we need to enable the remote access and "User can LOGIN REMOTELY(rsh,tn,rlogin)?" Press Tab key and then set it to true.

Disable Telnet


Login as root user and edit the file vi /etc/inetd.conf and then add a comment # at start of the telnet line
telnet  stream  tcp6    nowait  root    /usr/sbin/telnetd      telnetd -a

Refresh the inetd service

refresh -s inetd

After refreshing the inetd service we should not be able to login via telnet.

Disable Telnet on user basis.


To disable the remote access to user we should change the settings in the AIX user database. Type "smit user" then select "Change / Show Characteristics of a User" type the username that we need to disable the remote access and "User can LOGIN REMOTELY(rsh,tn,rlogin)?" Press Tab key and then set it to false. This will disable the remote access to the user.


Post a Comment

0 Comments