LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-21-2006, 08:01 AM   #1
junaid_fayyaz
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
How do I Telnet as the root user


how to configure telnet in RHEL4 that allow root user to login remotely.bydefault it disable due to security purpose.
 
Old 02-21-2006, 08:55 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Before you do this understand the reason behind the configuration. As soon as you telnet (or ftp), everyone between you and the destination machine knows your password. Your root password is exposed; you might as well post it in the telephone booth at the local pub. Your machine is fully compromised.

Most people don't realize that they actually want to use ssh/sftp/scp/rsync instead for login and file transfer. Telnet and ftp are "legacy" protocols, and should only be used where anonymous login is acceptable (like a public access server).

Even then, direct root login is prohibited by default. Requiring a second level of password is prudent, even communicating machine to machine in your home, to compartmentalize risk from a compromised machine. For specific commands, you can allow a non-root user to use sudo.

Last edited by macemoneta; 02-21-2006 at 08:56 AM.
 
Old 03-04-2006, 11:06 AM   #3
rino.caldelli
Member
 
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181

Rep: Reputation: 31
if you want to get your computer hacked use telnet to login as superuser from your pc at school!!!! anyone will see your password!!!
 
Old 03-04-2006, 11:59 PM   #4
Intimidator
Member
 
Registered: Mar 2005
Distribution: FC4
Posts: 83

Rep: Reputation: 15
since the passwords used to authenticate the server(ftp and telnet) are transmitted as clear text,it is not advisable to use root logins for the same(as already suggested..)

newayz the following will be the sol'n..

configuring telnet:

To enable the telnet these service, login to the server as the root userid and edit the file /etc/xinetd.d/telnet

In this file, find the line for disable and change it from the value "yes" to "no"

edit the file /etc/securetty and add the following to the end of the file:

pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9

This will allow up to 10 telnet sessions to the server as root.

Restart xinetd service


configure FTP for root logins:

Edit the files /etc/vsftpd.ftpusers and /etc/vsftpd.user_list and remove the 'root' line from each file

Restart vsftpd service..

Hope this helps..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
root(super user) is unable to login by using Telnet mahabooba Linux - Networking 10 02-02-2006 11:40 PM
Telnet as Root? stath Linux - Networking 4 03-30-2005 02:19 PM
Telnet root user dvong3 Linux - General 9 02-07-2004 12:51 PM
telnet for root mairul Linux - Newbie 15 11-04-2003 02:15 AM
Cannot telnet as root bunghole Linux - Networking 5 11-02-2001 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration