Click to See Complete Forum and Search --> : Removing Root Login From Telnet


Skul-X
05-12-2003, 11:52 AM
I am currently running mandrake 9.1, and would like to be able to remove the capabilities of loggoing in as root, when telneting into the machine, how would I go about setting this up???

Thanks in advance

Skul-X

gbell7211
05-12-2003, 12:10 PM
I believe you can do that by commenting out all your remote shells in /etc/securetty

ttys and ttyp are all remote shells or vc if using redhat9

DragonHead
05-12-2003, 10:46 PM
On Linux, the /etc/securetty file lists the devices on which "root" may log in.

To keep network logins of root from happening, remove everything but tty1 through tty8.

kam
05-12-2003, 10:54 PM
I feel like I ought to remind you that ssh is much more secure because it encrypts all traffic.

DragonHead
05-12-2003, 10:59 PM
that's true.

I don't even allow straight telneting into my machine. You have to use ssh.

serz
05-12-2003, 11:12 PM
No way man, use ssh...