How to disallow root access from telnet

How to disallow root access from telnet

Post by Kertis A. Henderso » Sat, 11 Jul 1998 04:00:00



How can I disallow root logins from a telnet connection?

TIA.

--

Kertis Henderson

 
 
 

How to disallow root access from telnet

Post by Allin Cottrel » Sat, 11 Jul 1998 04:00:00



> How can I disallow root logins from a telnet connection?

man login.  /etc/securetty.

--
Allin Cottrell
Department of Economics
Wake Forest University, NC

 
 
 

How to disallow root access from telnet

Post by Dan Hi » Sun, 12 Jul 1998 04:00:00



>How can I disallow root logins from a telnet connection?

>TIA.

>--

>Kertis Henderson


create/edit the file /etc/securetty with the following (see the securetty man
page)

tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8

My RH5.0 system came this way by default and does not allow root to login via
telnet. However, with a normal account, shell, and password, nothing stops you
from logging in as a regular user and the su'ing your way to full power.


 
 
 

How to disallow root access from telnet

Post by Deyon Ki » Sun, 12 Jul 1998 04:00:00


How can I allow root logins from telnet? If I want to allow root login from
192.168.0.2, what should I write to securetty? I just tried

tty1
tty2
...
tty7
tty8
192.168.0.2

but server rejects root login from 192.168.0.2.

 
 
 

How to disallow root access from telnet

Post by Chris Bro » Sun, 12 Jul 1998 04:00:00



> How can I allow root logins from telnet? If I want to allow root login from
> 192.168.0.2, what should I write to securetty? I just tried

It's generally not a good idea, and is why securetty exists.. so that only
the tty's in securetty can have root logins. If you want to be able to use
root from telnet, use the su command.

Quote:> tty1
> tty2
> ...
> tty7
> tty8
> 192.168.0.2

> but server rejects root login from 192.168.0.2.

That's because 192.168.0.2 is an IP, not a tty.

--
"In chaos and riots, the screech of machines |  This space dedicated to
 No right and no wrong and no in between     |    apocalyptic hamsters.
 Fall one by one, the queen to her fool      +-----------------------------
 Dos dedos mis amigos - everything's cool" -Everything's Cool by PWEI

 
 
 

How to disallow root access from telnet

Post by Allin Cottrel » Sun, 12 Jul 1998 04:00:00



> How can I allow root logins from telnet? If I want to allow root login from
> 192.168.0.2, what should I write to securetty? I just tried

> tty1
> tty2
> ...
> tty7
> tty8
> 192.168.0.2

> but server rejects root login from 192.168.0.2.

Detective work:  Try telnetting in as a regular user and do "w".
What do you see?  This is your clue as to what to add to
/etc/securetty if you really want to telnet in as root.  An
IP number won't work.  Much better, however, if you want remote
asscess as root, to use ssh (Secure Shell).

--
Allin Cottrell
Department of Economics
Wake Forest University, NC

 
 
 

How to disallow root access from telnet

Post by Conrad Sanders » Mon, 13 Jul 1998 04:00:00



Quote:>How can I disallow root logins from a telnet connection?

modify your /etc/securetty file as other people have suggested.
Additonally, edit your /etc/hosts.allow and  /etc/hosts.deny files,
which are a good first line defence against security attacks.
Example:

/etc/hosts.deny:
ALL: ALL

/etc/hosts.allow:
.att.net, .ibm.net, somemachine.cool.net

the above 2 files mean that logins for any user would only be allowed from
any machine in the .att.net domain or .ibm.net domain, as well as a
specific machine named somemachine.cool.net.  Modify this to your own
needs.

 
 
 

1. Enable root access to telnet with krb5-telnet

Hello All,
I would like to enable root login access to telnet on Fedora Core 6.
I am able to telnet to using a normal user, but not as a root user.
1) making changes to /etc/securetty with adding pts/0, pts/1 etc did
not help.
2) Removing the /etc/securetty file did not help.
3) Commenting out the auth entries in /etc/pam.d/login did not help.
4) If I disable krb5-telnet and install telnet-server rpm, the telnet
as root works on local system but a remote putty access is not
working.

My requirement is: I would like to login as root when telnet to my
remote Fedora Core6.

"Yes, I know. telnet is insecure, but this experiment is completely
inhouse and I _want_ to use telnet only"

Thanks in advance.

--
Senthil

2. Portforwarding with IPCAINS

3. telnet access, root access

4. IP forwarding from PPP connection

5. allow ftp, disallow telnet/ssh

6. networking printing systems

7. Why would "telnet localhost" disallow connection?

8. can't resolve symbol '_nl_C_LC_GOLLATE' ??? What the f...

9. how can I disallow one username being telnet or ftp to?

10. disallow telnet for wu.ftpd "guests"

11. root login disallowed. Not securetty problem

12. allow/disallow root logins

13. Root telnet access