Solved

root or equivalence from telnet

Posted on 1998-03-19
7
325 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

911 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

17 Experts available now in Live!

Get 1:1 Help Now