Telnet login screen looks different then login screen on box

Telnet login screen looks different then login screen on box

Post by Godu » Wed, 11 Dec 2002 18:33:01



Hey.

I got a prob.

Im trying to connect to a remote box running RedHat 6.2.

When I go to the box (physically sit by the box) I get a login screen with
the line : "romeo login:" . I have the root pass and I have no problem
entering.

When I try to login from somewhere else (via telnet) I get the normal login
screen (no "romeo") and my pass doesnt work. What do I do ?

Thanks

 
 
 

Telnet login screen looks different then login screen on box

Post by D.C. van Moolenbroe » Wed, 11 Dec 2002 21:06:17



> When I go to the box (physically sit by the box) I get a login screen with
> the line : "romeo login:" . I have the root pass and I have no problem
> entering.

> When I try to login from somewhere else (via telnet) I get the normal
login
> screen (no "romeo") and my pass doesnt work. What do I do ?

Use SSH instead. You don't want the root password travelling unencrypted
over the Internet, that's why telnet doesn't accept remote root logins by
default. Note that if the SSH daemon does not allow root logins either, you
could still login as a normal user and then "su" to root. Do not do this
with telnet though, as the same security risks apply!

About the difference in login prompts, that could easily be explained by the
fact that they are also generated by two different programs (usually
mingetty vs in.telnetd), although I'm not sure whether it's normal for
telnetd not to display the hostname in front of the first "login:" prompt.
If the banner above the login line is different too, you might want to check
out /etc/issue (for local logins) and /etc/issue.net (for remote logins).

Regards,

David

--
class sig{static void main(String[]s){for// D.C. van Moolenbroek
(int _=0;19>_;System.out.print((char)(52^// (CS student, VU, NL)
"Y`KbddaZ}`P#KJ#caBG".charAt(_++)-9)));}}// -Java sigs look bad-

 
 
 

Telnet login screen looks different then login screen on box

Post by /dev/rob » Thu, 12 Dec 2002 02:48:01



> Use SSH instead. You don't want the root password travelling unencrypted
> over the Internet, that's why telnet doesn't accept remote root logins by

True but it's not telnetd/telnet rejecting it. It's /bin/login. See
/etc/securetty.

Probably the OP is using the root account for routine things anyway.

--

  or put "not-spam" or "/dev/rob0" in Subject header to reply

 
 
 

Telnet login screen looks different then login screen on box

Post by Raqueeb Hass » Thu, 12 Dec 2002 06:08:38


okay, you can create another user. use that user to get access to ur
linux box. then make "su -" for getting root access.

raqueeb hassan
augusta, ga

 
 
 

Telnet login screen looks different then login screen on box

Post by D.C. van Moolenbroe » Thu, 12 Dec 2002 08:26:00




> > Use SSH instead. You don't want the root password travelling unencrypted
> > over the Internet, that's why telnet doesn't accept remote root logins
by

> True but it's not telnetd/telnet rejecting it. It's /bin/login. See
> /etc/securetty.

I was referring to telnet as the whole process, from the OP's point of view
that is, and not any binary specifically. Of course you're right, although
mentioning this might also tempt the OP to edit /etc/securetty instead.

Quote:> Probably the OP is using the root account for routine things anyway.

IMHO that's his own problem; but when his box becomes the source of, for
example, huge amounts of spam, then it suddenly becomes our problem aswell.
My guess is that most people won't learn not to use the root account for
everyday stuff until they destroy something valuable anyway. But who
knows...it never hurts to tell. :)

Regards,

David

--
class sig{static void main(String[]s){for// D.C. van Moolenbroek
(int _=0;19>_;System.out.print((char)(52^// (CS student, VU, NL)
"Y`KbddaZ}`P#KJ#caBG".charAt(_++)-9)));}}// -Java sigs look bad-

 
 
 

Telnet login screen looks different then login screen on box

Post by /dev/rob » Thu, 12 Dec 2002 10:00:41



> mentioning this might also tempt the OP to edit /etc/securetty instead.

Egad! :)

Quote:> My guess is that most people won't learn not to use the root account for
> everyday stuff until they destroy something valuable anyway. But who
> knows...it never hurts to tell. :)

I myself took it as advice when I started. Coming from a DOS background
it made no sense to me: why would I want any limits on what I can do?
But I listened and heeded. It helped me learn when root privileges are
needed, and why. Eventually I even understood why I wanted the limits.

I have had a few root oopses, as have we all. But I've never destroyed
an entire system that way. The worst I did was a couple of years ago,
accidentally deleting my NTFS partition. Better off without it, as it
turned out. :)

So yes, I agree, it never hurts to tell.

--

  or put "not-spam" or "/dev/rob0" in Subject header to reply