inthukha

Well-Known Member
Jul 17, 2013
61
0
6
cPanel Access Level
Root Administrator
Hello,

I noticed the logs generating in /var/log/messages

Code:
Aug 21 01:09:51 server1 ting for c: warning: /etc/hosts.deny, line 11: missing newline or line too long
in host.deny file

Code:
# hosts.deny	This file contains access rules which are used to
#		deny connections to network services that either use
#		the tcp_wrappers library or that have been
#		started through a tcp_wrappers-enabled xinetd.
#
#		The rules in this file can also be set up in
#		/etc/hosts.allow with a 'deny' option instead.
#
#		See 'man 5 hosts_options' and 'man 5 hosts_access'
#		for information on rule syntax.
#		See 'man tcpd' for information on tcp_wrappers
in.telnetd : ALL : severity emerg
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

Did you manually add that entry to your /etc/hosts.deny file? Were you wanting to block access to the telnet?

Thank you.
 

inthukha

Well-Known Member
Jul 17, 2013
61
0
6
cPanel Access Level
Root Administrator
Hello :)

Did you manually add that entry to your /etc/hosts.deny file? Were you wanting to block access to the telnet?

Thank you.

Yes, but i don't have telnet service enable or even installed. i just putt this by following security tips. should i remove this ?

- - - Updated - - -

Just try to add "telnet: ALL" this and check if this works for you.
Thanks for the reply. i will try this and will let you know.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
I recommend removing the entry completely. If you want to disable telnet on your server, you can remove it via:

Code:
yum remove telnet
Thank you.
 

inthukha

Well-Known Member
Jul 17, 2013
61
0
6
cPanel Access Level
Root Administrator
Hello Michael,

I removed the entry from the host.deny file but i can still see the warning message. only thing changed is line 11 to 10.

httpd/network services restarted but not solve.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Was the file manually edited in a text editor from another platform (e.g. Windows)? You may want to remove the contents of this file completely and replace it with the default entry. EX:

Code:
#
# hosts.deny	This file describes the names of the hosts which are
#		*not* allowed to use the local INET services, as decided
#		by the '/usr/sbin/tcpd' server.
#
Thank you.
 

inthukha

Well-Known Member
Jul 17, 2013
61
0
6
cPanel Access Level
Root Administrator
Hi,

I have the following default

Code:
# hosts.deny	This file contains access rules which are used to
#		deny connections to network services that either use
#		the tcp_wrappers library or that have been
#		started through a tcp_wrappers-enabled xinetd.
#
#		The rules in this file can also be set up in
#		/etc/hosts.allow with a 'deny' option instead.
#
#		See 'man 5 hosts_options' and 'man 5 hosts_access'
#		for information on rule syntax.
#		See 'man tcpd' for information on tcp_wrappers
upon replacing with your provided its showing:

Code:
Sep  1 22:24:26 server1 ting for c: warning: /etc/hosts.deny, line 4: missing newline or line too long

Okay, finally remove all of he content from /etc/hosts.deny file solve the issue. this should be blank file. i use centos 6.4