Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-21-2006, 08:01 AM
|
#1
|
LQ Newbie
Registered: Feb 2006
Posts: 1
Rep:
|
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.
|
|
|
02-21-2006, 08:55 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
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.
|
|
|
03-04-2006, 11:06 AM
|
#3
|
Member
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181
Rep:
|
if you want to get your computer hacked use telnet to login as superuser from your pc at school!!!! anyone will see your password!!!
|
|
|
03-04-2006, 11:59 PM
|
#4
|
Member
Registered: Mar 2005
Distribution: FC4
Posts: 83
Rep:
|
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..
|
|
|
All times are GMT -5. The time now is 07:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|