1836582 Members
1421 Online
110102 Solutions
New Discussion

Re: to disable telnet

 
Venkatesh_10
Occasional Advisor

to disable telnet

how to disable telnet service for root and allow ordinary user to telnet ,then su to root.
4 REPLIES 4
Robert-Jan Goossens_1
Honored Contributor

Re: to disable telnet

Hi,

enable direct root login only from console

# echo console > /etc/securetty

setup a SU_ROOT_GROUP=XXXX in the /etc/default/security

Regards,
Robert-Jan
Sunil Sharma_1
Honored Contributor

Re: to disable telnet

create a blank file in /etc directory name securtty. This will stop direct root user login to system even on console. If you want root to login directly on console then enter"console" in this file.


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Naveej.K.A
Honored Contributor

Re: to disable telnet

Hi,

Disable telnet or disable root login??

root login

cat console > /etc/securetty
chmod 440 /etc/securetty

(root login only through console)

Disable telnet.
hash the entries for telnet in /etc/inetd.conf and restart the inetd service. You may have to install ssh to login to the server, once you disable telnet.

Regards,
Naveej

practice makes a man perfect!!!
Venkatesh_10
Occasional Advisor

Re: to disable telnet

thanks for inputs..it worked.