LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-20-2001, 08:14 PM   #1
AtulGore
LQ Newbie
 
Registered: Jul 2001
Location: Sunnyvale, CA
Posts: 11

Rep: Reputation: 0
Question Root Telnet Access


I am a bit confused. I need to allow telnet access to root from one of my RH 7.1 boxes. Now I have removed /etc/securetty, I have flushed ipchains. I can telnet as another user and then su - root but telnet directly as root always fails. Am I missing anything.

Please let me know.

thanks..
... Atul
 
Old 11-20-2001, 08:21 PM   #2
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
sounds like a 'feature'. probably not a good idea to have a box open to root telnet for security reasons. im sure there is a way to allow it, but i am not the one to ask.

jason
 
Old 11-21-2001, 11:24 AM   #3
BaerRS
Member
 
Registered: Oct 2001
Location: Columbus, Ohio
Distribution: all.. but mainly SuSe--- looks like it changing to Red Hat
Posts: 119

Rep: Reputation: 15
I would sugest that you NOT add root to the telnet access.. i dont know how to.. I dont even want to know how to..

but to solve your problem youcan probobly just login as USER1 and then su to root..
this should give you the same env as if you just logged in as root.

Another suggestion would be to start to use ssh instead of telnet... (if your going from a Linux box that is) Same thing applies.. you cant login as root directly.. you still have to su to root....

Last edited by BaerRS; 11-21-2001 at 11:26 AM.
 
Old 11-21-2001, 02:24 PM   #4
sancho5
Member
 
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Rep: Reputation: 30
yes, for the sake of getting used to it, DO NOT use telnet, use SSH. Even if it's on your isolated internal network, use SSH.

The part that may have your root access blocked it a PAM module. All logins are compared to configs in PAM before login is granted, and I think that's a PAM related policy in effect for you. But never you mind telnet boy, get on wit SSH!
 
Old 11-21-2001, 02:40 PM   #5
dewcansam
Member
 
Registered: Nov 2001
Location: Hi Hat KY USA
Distribution: RedHat, Mandrake
Posts: 63

Rep: Reputation: 15
I didn't think that you could telnet in as root. If you INSIST on using telnet I believe that you must login in as username the $su - . To give you root access.
But forget all that USE ssh. With ssh you can login directly as root. I recomend that you turn off root access and still login in as username then $su - .
 
Old 11-21-2001, 11:32 PM   #6
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
Securetty!

Hi ,

Try adding the lines pty/0 to the file securetty.

Check out the file /etc/login.defs and also the various files under the directory /etc/pam.d ..... this files control various things such as those associated with PAM , LOGIN, etc.

Though i have never tried it myself, but u can check out the file
/etc/pam.d/login ( take BackUp of your files before making any changes!!!!) .

You might see something like :

auth requisite pam_securetty.so

Comment out the line and restart network services and check if u are able to telnet as root .


Regards ,
Xanthium.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
root access via telnet Goma_2 Linux - Security 9 02-09-2004 07:43 AM
root access in telnet dcorwin822 Linux - Software 12 11-06-2003 07:22 PM
root access via telnet Goma_2 Linux - General 3 10-03-2003 09:13 AM
Telnet Access Ganeshmanus Linux - Networking 15 08-01-2003 02:00 PM
telnet: DISallow root access MacDschie Linux - Software 2 05-14-2003 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration