Operating System - Linux
1827802 Members
2360 Online
109969 Solutions
New Discussion

Re: root blocked for network services

 
SOLVED
Go to solution
Tiago Marques_2
Advisor

root blocked for network services

Hi!

I'm tying to connect my Linux server by telnet, ftp, rlogin services, but, using the user root I can't get access, and using other users there is no problem. The message returned for the root when I try to use any network service is that the login is incorrect.
Do I need configure any access file to provide the access for the root user??

Thanks!
eestimq
7 REPLIES 7
Steven Mertens
Trusted Contributor

Re: root blocked for network services

hi,

I assume you use a redhat distro :

for telnet add the following lines to
/etc/securetty

pts/0
pts/1
pts/2
...

for rlogin add the following line to
/etc/securetty

rlogin

for ftp (assume wu-ftp) add the following
to /etc/ftpaccess

allow-uid root
allow-gid root

Remember that it's not safe to use telnet
or rlogin , ssh is much better

Hope this helps.

Regards

Steven
Steven Mertens
Trusted Contributor

Re: root blocked for network services


... i forgot , i think its also nessasary
to restart xinetd before it will work

-> service xinetd restart
I_M
Honored Contributor
Solution

Re: root blocked for network services

Hi

Talking about telnet login by root, you need to change /etc/pam.d/login.

Find following line, then make it "comment".

auth required /lib/security/pam_securetty.so

Without this line, telnet login never check /etc/securetty file.

Good luck
Peter Kloetgen
Esteemed Contributor

Re: root blocked for network services

Hi Tiago,

you can also mv the securetty file:

mv /etc/securetty /etc/securetty.save

this prevents all network services to look into this file. You will also have to change a parameter in the telnet- file :

disable = yes --> change it to "no", otherwise root will never be able to telnet anything.

And yes, you *have* to restart xinetd.

This should do it for you, but as allready mentioned, never forget, telnet as root is a sucurity hole! Better telnet the remote host as a normal user and then do a su to root...

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
Tiago Marques_2
Advisor

Re: root blocked for network services

Why using Telnet with root it's so unsecure??
eestimq
Peter Kloetgen
Esteemed Contributor

Re: root blocked for network services

Hi Tiago,

when you are telnetting to a remote host, you are forced to give a root password..... and the telnet service is using *no* data encryption. So if anybody in your network has a sniffer software....(like nettl on HP-UX or snoop on Solaris) he simply gets your root password. And this *is* unsecure! Further on, telnet sessions are relatively easy to overtake when you finish them.

So the better choice is *never* to telnet as root directly but do a switch user on the remote host to root. Or to use some terminal emulator software that use data encryption, like ReflectionX or Hummingbird Exeed.

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
Soumen Ghosh_1
Occasional Advisor

Re: root blocked for network services

Hello,

One small thing. Restarting 'xinetd' in this case is not necessary. If 'xinetd' has to be reconfigured, issuing the following command :
kill -SIGUSR1 `cat /var/run/xinetd.pid`
would reconfigure 'xinetd' service without stopping it.
Thanks.

Soumen Ghosh