Solved

root or equivalence from telnet

Posted on 1998-03-19
7
320 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
  • 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now