* telnet login problem
@ 2000-11-06 5:00 Marble Head
2000-11-07 2:10 ` Stephen S.
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Marble Head @ 2000-11-06 5:00 UTC (permalink / raw)
I have edited the /etc/securetty file on a RedHat 6.2 system, but I
still have a "Login incorrect" message displayed, for only root.
I added to the file,
pts/0
pts/1
...
pts/9
and all root logins through telnet are failed.
Any help?
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: telnet login problem
2000-11-06 5:00 telnet login problem Marble Head
@ 2000-11-07 2:10 ` Stephen S.
2000-11-11 5:00 ` Pyksy^dAP
2000-11-22 12:37 ` Maze Welwarsky
2000-11-07 3:30 ` Alex Alegado
2000-11-07 5:00 ` Martin Sinot
2 siblings, 2 replies; 11+ messages in thread
From: Stephen S. @ 2000-11-07 2:10 UTC (permalink / raw)
I don't think you can allow root telnets. I usually telnet in as my
nomral user and su to get root access. You could also create a usr
and change his user number and groiup to root's.
On Mon, 06 Nov 2000 15:51:20 -0500, Marble Head
<Marble.Head@nospam.guacamole.com> wrote:
>I have edited the /etc/securetty file on a RedHat 6.2 system, but I
>still have a "Login incorrect" message displayed, for only root.
>I added to the file,
>pts/0
>pts/1
>...
>pts/9
>and all root logins through telnet are failed.
>
>Any help?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: telnet login problem
2000-11-07 2:10 ` Stephen S.
@ 2000-11-11 5:00 ` Pyksy^dAP
2000-11-11 5:00 ` Stephen S.
2000-11-22 12:37 ` Maze Welwarsky
1 sibling, 1 reply; 11+ messages in thread
From: Pyksy^dAP @ 2000-11-11 5:00 UTC (permalink / raw)
In article <9rle0ts2jtgp5htpk7amu8uqk1vlku7ill@4ax.com>, Stephen S. wrote:
> nomral user and su to get root access. You could also create a usr
> and change his user number and groiup to root's.
No, you can't. You can't telnet in with user that has user id of 0.
--
_ __ ___ _ __ ___
_ __ ___/\ .--- Antti Pyykko <-----> pyksy@sievi.fi ---. _ __ ___/\
_ __ ___/\/\ :-> +358-50-539 5438 <--> #AmigaFIN @ IRC <-: _ __ ___/\/\
_ __ __\/\/ :--> Amiga 2000 <-> GVP 22MHz '030 Combo <--: _ __ __\/\/
_ __ __\/ `------> http://www.sievi.fi/~pyksy/ <------' _ __ __\/
Copyright 2000 Antti Pyykk�. Microsoft(tm) Network is prohibited from
redistributing this work in any form, either in whole or in part.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: telnet login problem
2000-11-11 5:00 ` Pyksy^dAP
@ 2000-11-11 5:00 ` Stephen S.
0 siblings, 0 replies; 11+ messages in thread
From: Stephen S. @ 2000-11-11 5:00 UTC (permalink / raw)
You're absolutely right. I was thinking about that after I posted and
realized I was wrong. I had done that to my user here so I wouldn't
have to login as root all the time or run su for stupid stuff, either
way it was all locally done, no telneting involved. Sorry.
On Sat, 11 Nov 2000 10:05:49 GMT, pyksy@sievi.fi (Pyksy^dAP) wrote:
>In article <9rle0ts2jtgp5htpk7amu8uqk1vlku7ill@4ax.com>, Stephen S. wrote:
>> nomral user and su to get root access. You could also create a usr
>> and change his user number and groiup to root's.
>
>No, you can't. You can't telnet in with user that has user id of 0.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: telnet login problem
2000-11-07 2:10 ` Stephen S.
2000-11-11 5:00 ` Pyksy^dAP
@ 2000-11-22 12:37 ` Maze Welwarsky
1 sibling, 0 replies; 11+ messages in thread
From: Maze Welwarsky @ 2000-11-22 12:37 UTC (permalink / raw)
"Stephen S." schrieb:
> I don't think you can allow root telnets. I usually telnet in as my
> nomral user and su to get root access. You could also create a usr
> and change his user number and groiup to root's.
>
Don't even do that. Don't use telnet at all. It's *evil*. It uses
cleartext transmission of passwords. Use SSH.
Sincerely
Matthias
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: telnet login problem
2000-11-06 5:00 telnet login problem Marble Head
2000-11-07 2:10 ` Stephen S.
@ 2000-11-07 3:30 ` Alex Alegado
2000-11-07 5:00 ` Martin Sinot
2 siblings, 0 replies; 11+ messages in thread
From: Alex Alegado @ 2000-11-07 3:30 UTC (permalink / raw)
You aren't allowed to login as "root" via telnet. "root" is only allowed at the console. If
you want to login via telnet as root, first login as anyone else and then "su" to root.
Marble Head wrote:
>
> I have edited the /etc/securetty file on a RedHat 6.2 system, but I
> still have a "Login incorrect" message displayed, for only root.
> I added to the file,
> pts/0
> pts/1
> ...
> pts/9
> and all root logins through telnet are failed.
>
> Any help?
>
--
Posted via CNET Help.com
http://www.help.com/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: telnet login problem
2000-11-06 5:00 telnet login problem Marble Head
2000-11-07 2:10 ` Stephen S.
2000-11-07 3:30 ` Alex Alegado
@ 2000-11-07 5:00 ` Martin Sinot
2000-11-07 5:00 ` Marble Head
2 siblings, 1 reply; 11+ messages in thread
From: Martin Sinot @ 2000-11-07 5:00 UTC (permalink / raw)
Marble Head <Marble.Head@nospam.guacamole.com> wrote in message
news:3A0719C8.C91E385@nospam.guacamole.com...
> I have edited the /etc/securetty file on a RedHat 6.2 system, but I
> still have a "Login incorrect" message displayed, for only root.
> I added to the file,
> pts/0
> pts/1
> ...
> pts/9
> and all root logins through telnet are failed.
>
> Any help?
>
You must add the terminals for which you want to allow root access to
/etc/securetty. So you have the right file. Only these terminals are
probably not
called pts/0, pts/1, ... (at least when I try this, they look like ttyp0,
ttyp1, ...).
To find out what you need to add, login as a common user and type
"who am i" (without the quotes). This tells you what terminal you are
currently
logged on. Then you add this terminal and maybe similar looking terminals
to /etc/securetty.
Note that it is not recommended to telnet directly to root, for security
reasons.
It is better to login to a common user and then su to root.
--
Martin Sinot
martin@nospam.spase.nl
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: telnet login problem
2000-11-07 5:00 ` Martin Sinot
@ 2000-11-07 5:00 ` Marble Head
2000-11-08 5:00 ` Martin Sinot
0 siblings, 1 reply; 11+ messages in thread
From: Marble Head @ 2000-11-07 5:00 UTC (permalink / raw)
Yep, that's what I did. The correct terminal is pts/0 etc. And that's what
I added to securetty.
The same method works for Debian, and for SuSE. But it doesn't work for RH.
I guess that RH must have made some special binaries or something that don't
permit you to do this somehow.
Oh well.
guess I'll have to stick with the su command.
I know it's not advisable, but this machine is on a secure (non-connected)
local network.
Martin Sinot wrote:
> Marble Head <Marble.Head@nospam.guacamole.com> wrote in message
> news:3A0719C8.C91E385@nospam.guacamole.com...
> > I have edited the /etc/securetty file on a RedHat 6.2 system, but I
> > still have a "Login incorrect" message displayed, for only root.
> > I added to the file,
> > pts/0
> > pts/1
> > ...
> > pts/9
> > and all root logins through telnet are failed.
> >
> > Any help?
> >
>
> You must add the terminals for which you want to allow root access to
> /etc/securetty. So you have the right file. Only these terminals are
> probably not
> called pts/0, pts/1, ... (at least when I try this, they look like ttyp0,
> ttyp1, ...).
> To find out what you need to add, login as a common user and type
> "who am i" (without the quotes). This tells you what terminal you are
> currently
> logged on. Then you add this terminal and maybe similar looking terminals
> to /etc/securetty.
>
> Note that it is not recommended to telnet directly to root, for security
> reasons.
> It is better to login to a common user and then su to root.
>
> --
> Martin Sinot
> martin@nospam.spase.nl
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: telnet login problem
2000-11-07 5:00 ` Marble Head
@ 2000-11-08 5:00 ` Martin Sinot
2000-11-08 5:00 ` Marble Head
0 siblings, 1 reply; 11+ messages in thread
From: Martin Sinot @ 2000-11-08 5:00 UTC (permalink / raw)
Marble Head <Marble.Head@nospam.guacamole.com> wrote in message
news:3A08326C.F52AB6CF@nospam.guacamole.com...
> Yep, that's what I did. The correct terminal is pts/0 etc. And that's
what
> I added to securetty.
> The same method works for Debian, and for SuSE. But it doesn't work for
RH.
> I guess that RH must have made some special binaries or something that
don't
> permit you to do this somehow.
>
> Oh well.
>
> guess I'll have to stick with the su command.
> I know it's not advisable, but this machine is on a secure (non-connected)
> local network.
Hmm, didn't realize that you used the pts filesystem. After some
experimenting
I found that it IS possible to telnet as root. Do not add pts/0...pts/9, but
only
the numbers, so your /etc/securetty looks something like:
tty1
tty2
...
tty8 # original
0 # your additions
1
2
...
9
So your terminal is actually a simple number, without the path.
You can use the pts pseudoterminal filesystem on other distributions as well
(you will of course have to make the same additions to /etc/securetty), but
only Redhat appears to install it automatically.
Good luck,
--
Martin Sinot
martin@nospam.spase.nl
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: telnet login problem
2000-11-08 5:00 ` Martin Sinot
@ 2000-11-08 5:00 ` Marble Head
2000-11-29 5:00 ` fuzzyfelt
0 siblings, 1 reply; 11+ messages in thread
From: Marble Head @ 2000-11-08 5:00 UTC (permalink / raw)
Summary:
For redhat only, if you're using the pts file system, securetty doesn't use
pts/num, it simply uses num.
Tres interessant.
Thank you so much. :-)
Martin Sinot wrote:
> Marble Head <Marble.Head@nospam.guacamole.com> wrote in message
> news:3A08326C.F52AB6CF@nospam.guacamole.com...
> > Yep, that's what I did. The correct terminal is pts/0 etc. And that's
> what
> > I added to securetty.
> > The same method works for Debian, and for SuSE. But it doesn't work for
> RH.
> > I guess that RH must have made some special binaries or something that
> don't
> > permit you to do this somehow.
> >
> > Oh well.
> >
> > guess I'll have to stick with the su command.
> > I know it's not advisable, but this machine is on a secure (non-connected)
> > local network.
>
> Hmm, didn't realize that you used the pts filesystem. After some
> experimenting
> I found that it IS possible to telnet as root. Do not add pts/0...pts/9, but
> only
> the numbers, so your /etc/securetty looks something like:
>
> tty1
> tty2
> ...
> tty8 # original
> 0 # your additions
> 1
> 2
> ...
> 9
>
> So your terminal is actually a simple number, without the path.
> You can use the pts pseudoterminal filesystem on other distributions as well
> (you will of course have to make the same additions to /etc/securetty), but
> only Redhat appears to install it automatically.
>
> Good luck,
>
> --
> Martin Sinot
> martin@nospam.spase.nl
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2000-11-29 5:00 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-06 5:00 telnet login problem Marble Head
2000-11-07 2:10 ` Stephen S.
2000-11-11 5:00 ` Pyksy^dAP
2000-11-11 5:00 ` Stephen S.
2000-11-22 12:37 ` Maze Welwarsky
2000-11-07 3:30 ` Alex Alegado
2000-11-07 5:00 ` Martin Sinot
2000-11-07 5:00 ` Marble Head
2000-11-08 5:00 ` Martin Sinot
2000-11-08 5:00 ` Marble Head
2000-11-29 5:00 ` fuzzyfelt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox