Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

telnet as root user 1

Status
Not open for further replies.

boon82

Technical User
Mar 11, 2004
25
MY
Hi all,

I can remotely access my Linux 9.0 via SSH as root user. However, i will like to TELNET in as root user too but in vain. How can i do this? I can only TELNET in as a normal user (can't do it using the root account). Thanks :)


Regards,
Boon
 
Why not just log in as normal user, the su to root when needed?
 
Most distros have telnet in by root specifically turned off for security reasons and you should leave it that way.
 
I can remotely access my Linux 9.0 via SSH as root user.

A number of linux distro's specifically disable this as well: telnet is transmitted in the clear, which means even [tt]su[/tt] after a successful login could result in the bad guys grabbing your password. At least with SSH you have the protection of encryption.

Another way is to use the [tt]sudo[/tt] command, which allows a regular user to issue a certain subset of commands as if they were super-user.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
You should never allow root to be able to remotely access your server for any reason whatsoever, especiall over telnet due to reason given by manarth. If you do, you have already given potential hackers half of the puzzel to screw your system.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
I believe all you need to do (just to answer your question) is put the device entries for pts/1-pts/whatever in your /etc/securettys file :)

Chris
 
Just to add, some *nixes call it "securettys" and some call it "securetty" .. read the man page it will tell you there :)
 
SOMEBODY PLEASE SAY IT. "NEVER USE TELNET!!!!" EVERYTHING YOU TYPE IS IN THE CLEAR. Using "su" is foolish, you're transmitting the root-equivalent account's password in the clear just as if you were logging on with root's id.

PLEASE PLEASE PLEASE use "ssh" for secured connections using a telnet-style terminal/prompt. This is secure, easy, and responsible. Otherwise you're just asking to have your box hacked - and, IMHO, if you use telnet over the Internet, you deserve it. Frankly, it's even easier to sniff internal corporate/university networks so I wouldn't go using telnet inside your corporate network either.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Yeah, don't use telnet at all if you really mean remote. If you absolutely have to use telnet 'cuz you're away and all you can access is a Windows machine on which you cannot download and install an SSH client, change your password the second you get home. And definitely don't telnet in as root.

There's about one case where telnetting is ok: telnetting into your living room computer from your bedroom computer when you know the telnet server is not accessible from the Internet (preferably because neither computer is on the Internet).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top