Solved

root or equivalence from telnet

Posted on 1998-03-19
7
331 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

695 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