Solved

root or equivalence from telnet

Posted on 1998-03-19
7
330 Views
Last Modified: 2011-09-20
I am using redhat linux 5. I need a root (or equivalence user) to log in from telnet. Linux, by default, does not allow root or equivallences to log in remotely. How do I change this?

Avi
0
Comment
Question by:avi_shava
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 2

Accepted Solution

by:
jeffa072897 earned 10 total points
ID: 1636854
Look in /etc for a file securetty. This file controls where root can log in from.
Add line(s) for each psuedo tty(telnet) you want root to get access from. The first connection is ttyp0. Toy can have one line for each psuedo tty you want root to be able to login.
I have a line with ttyp0 and whenever I telnet and I get
commection p0 I can log in as root. Any other telnets will deny root as a login.
Any other connection you log in to (ttypX) you will have to
do an su to become root.

0
 
LVL 2

Author Comment

by:avi_shava
ID: 1636855
This server is running one network card connected to the internet. How can I know what connection it is?
0
 
LVL 2

Expert Comment

by:jeffa072897
ID: 1636856
There is no real way to tell.
When you telnet to the box you will see on the line above the
login prompt the connection you're on in parentesis ().
This can vary depending on how many people telnet to the box.
If you are the only one telneting then it will always be ttyp0.
Otherwise, you should get a rough guess for the number of telnet'ers and put enough ttypX's in securetty to cover them all. This is a potential security problem. But, if you have at least ttyp0 you should then be able to su to root from any telnet session.

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Author Comment

by:avi_shava
ID: 1636857
thanks
0
 

Expert Comment

by:jimman
ID: 1636858
Can u login to the machine as other user's name? then, u can use 'su' to become a super user.
0
 

Expert Comment

by:jimman
ID: 1636859
Can u login to the machine as other user's name? then, u can use 'su' to become a super user.
0
 
LVL 2

Author Comment

by:avi_shava
ID: 1636860
thanks, your solution was good, but I asked a friend, and he told me to use su... so i used it (i am using this way for more than a month), but thanks anyway for bothering you again after the question was closed.


Avi
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question