System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable root login in telnet

rana sarkar
Advisor

Disable root login in telnet

How to Disable root login in telnet
9 REPLIES
Ganesan R
Honored Contributor

Re: Disable root login in telnet

Hi Rana,

Your /etc/securetty file should contain this line.

# cat /etc/securetty
console
#

Best wishes,

Ganesh.
Md. Farhan A Azam
Trusted Contributor

Re: Disable root login in telnet

Hi,

#vi /etc/securetty
(add console in securetty file)

After this root will not be able to login directly through telnet.

Thnx...Farhan
Ganesan R
Honored Contributor

Re: Disable root login in telnet

Hi,

Take some time to assign points for those who spent time to assist you.

I have assigned points to 4 of 30 responses to my questions.
Best wishes,

Ganesh.
Bijeesh
Respected Contributor

Re: Disable root login in telnet

edit /etc/security
put entry 'console'
Bijeesh
Respected Contributor

Re: Disable root login in telnet


sorry...
file name is /etc/securetty
Taifur
Respected Contributor

Re: Disable root login in telnet

Hi Rana,

For disable root login in telnet, create a file called /etc/securetty with the following content:

# vi /etc/securetty
console

:x
then save and check the issue.

Rgds//
Taifur
Md. Farhan A Azam
Trusted Contributor

Re: Disable root login in telnet

Hi,

Ganesan R have given a right suggestion..
First check the posted suggesstion helped you to resolve your query, then assign the points.

Thnx...Farhan
Torsten.
Acclaimed Contributor

Re: Disable root login in telnet

For security reasons, I would consider to disable telnet totally and use ssh instead.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Mark McDonald_2
Trusted Contributor

Re: Disable root login in telnet

Google would have answered this question much quicker than waiting for people on here to answer. For example my first result from google is this:

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1239252109239+28353475&threadId=742400