Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Connection Refused W/ Xinetd, Can't connect to telnet/ftp with xinetd
heyall
post Jul 31 2003, 11:27 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 31-July 03
Member No.: 1,179



I cannot connect remotely or locally to my Mandrake Linux 9.1 with xinetd box via telnet or ftp ("connection refused").

CODE
# chkconfig --list telnet
telnet on


CODE
# grep disable /etc/xinetd.d/telnet
disable = no


I don't have any sort of firewall or filtering system.

I have checked
CODE
/etc/hosts.deny
and
CODE
/etc/hosts.allow


I have been tinkering with xinetd.conf and for all I can tell the services look enabled. After I make changes, I always
CODE
# killall -USR1 xinetd


I have also tried re-installing inetutils (I saw on a thread on another site that it helped), with no success.

I have read in a previous post that somebody's problem in this situation was: "/etc/xinited/telnet & vsftps files did not have an extra blank line at the files." Do you know what he was speaking of?

Here is what my xinetd log looks like:

CODE
03/7/30@20:47:34 xinetd[1918]: WARNING: Bad log_on_success flag: PID
[line=21]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute log_on_success - DISABLING SERVICE [line=21]
03/7/30@20:47:34 xinetd[1918]: WARNING: Bad log_on_failure flag: RECORD
[line=24]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute log_on_failure - DISABLING SERVICE [line=24]
03/7/30@20:47:34 xinetd[1918]: WARNING: Bad service flag: REUSE
[line=33]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute flags - DISABLING SERVICE [line=33]
03/7/30@20:47:34 xinetd[1918]: ERROR: Bad socket type: stream
[line=34]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute socket_type - DISABLING SERVICE [line=34]
03/7/30@20:47:34 xinetd[1918]: ERROR: Bad value for wait: no
[line=35]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute wait - DISABLING SERVICE [line=35]
03/7/30@20:47:34 xinetd[1918]: ERROR: Unknown user: root
[line=36]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute user - DISABLING SERVICE [line=36]
03/7/30@20:47:34 xinetd[1918]: ERROR: Server /usr/sbin/ftpd
is not executable [line=37]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute server - DISABLING SERVICE [line=37]
03/7/30@20:47:34 xinetd[1918]: ERROR: Bad value: no
[line=39]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute disable - DISABLING SERVICE [line=39]
03/7/30@20:47:34 xinetd[1918]: WARNING: Bad service flag: REUSE
[line=44]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute flags - DISABLING SERVICE [line=44]
03/7/30@20:47:34 xinetd[1918]: ERROR: Bad socket type: stream
[line=45]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute socket_type - DISABLING SERVICE [line=45]
03/7/30@20:47:34 xinetd[1918]: ERROR: Bad value for wait: no
[line=46]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute wait - DISABLING SERVICE [line=46]
03/7/30@20:47:34 xinetd[1918]: ERROR: Unknown user: root
[line=47]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute user - DISABLING SERVICE [line=47]
03/7/30@20:47:34 xinetd[1918]: ERROR: Server /usr/sbin/telnetd
is not executable [line=48]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute server - DISABLING SERVICE [line=48]
03/7/30@20:47:34 xinetd[1918]: ERROR: Bad value: no
[line=49]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute disable - DISABLING SERVICE [line=49]
03/7/30@20:47:34 xinetd[1918]: DEBUG: removing defaults
03/7/30@20:47:34 xinetd[1918]: DEBUG: removing ftp
03/7/30@20:47:34 xinetd[1918]: DEBUG: removing telnet
03/7/30@20:47:34 xinetd[1918]: CRITICAL: 1918 {init_services} no services. Exiting...


A03/7/30@20:47:34 xinetd[1918]: WARNING: Bad log_on_success flag: PID
[line=21]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute log_on_success - DISABLING SERVICE [line=21]
03/7/30@20:47:34 xinetd[1918]: WARNING: Bad log_on_failure flag: RECORD
[line=24]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute log_on_failure - DISABLING SERVICE [line=24]
03/7/30@20:47:34 xinetd[1918]: WARNING: Bad service flag: REUSE
[line=33]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute flags - DISABLING SERVICE [line=33]
03/7/30@20:47:34 xinetd[1918]: ERROR: Bad socket type: stream
[line=34]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute socket_type - DISABLING SERVICE [line=34]
03/7/30@20:47:34 xinetd[1918]: ERROR: Bad value for wait: no
[line=35]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute wait - DISABLING SERVICE [line=35]
03/7/30@20:47:34 xinetd[1918]: ERROR: Unknown user: root
[line=36]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute user - DISABLING SERVICE [line=36]
03/7/30@20:47:34 xinetd[1918]: ERROR: Server /usr/sbin/ftpd
is not executable [line=37]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute server - DISABLING SERVICE [line=37]
03/7/30@20:47:34 xinetd[1918]: ERROR: Bad value: no
[line=39]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute disable - DISABLING SERVICE [line=39]
03/7/30@20:47:34 xinetd[1918]: WARNING: Bad service flag: REUSE
[line=44]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute flags - DISABLING SERVICE [line=44]
03/7/30@20:47:34 xinetd[1918]: ERROR: Bad socket type: stream
[line=45]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute socket_type - DISABLING SERVICE [line=45]
03/7/30@20:47:34 xinetd[1918]: ERROR: Bad value for wait: no
[line=46]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute wait - DISABLING SERVICE [line=46]
03/7/30@20:47:34 xinetd[1918]: ERROR: Unknown user: root
[line=47]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute user - DISABLING SERVICE [line=47]
03/7/30@20:47:34 xinetd[1918]: ERROR: Server /usr/sbin/telnetd
is not executable [line=48]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute server - DISABLING SERVICE [line=48]
03/7/30@20:47:34 xinetd[1918]: ERROR: Bad value: no
[line=49]
03/7/30@20:47:34 xinetd[1918]: ERROR: Error parsing attribute disable - DISABLING SERVICE [line=49]
03/7/30@20:47:34 xinetd[1918]: DEBUG: removing defaults
03/7/30@20:47:34 xinetd[1918]: DEBUG: removing ftp
03/7/30@20:47:34 xinetd[1918]: DEBUG: removing telnet
03/7/30@20:47:34 xinetd[1918]: CRITICAL: 1918 {init_services} no services. Exiting...


Everthing it is saying is sort of wierd, because as far as I can tell, my conf files are all set up correctly:

xinetd.conf:
CODE
# This is a modified and cleaned up version of a xinetd.conf
# originally created by xconv.pl.
# The defaults section sets some information for all services
service defaults
{
       #The maximum number of requests a particular service may handle
       # at once.
       instances   = 25

       # The type of logging.  This logs to a file that is specified.

       # Another option is: SYSLOG syslog_facility [syslog_level]
       log_type    = FILE /var/log/xinetd.log

       # What to log when the connection succeeds.
       # PID logs the pid of the server processing the request.
       # HOST logs the remote host's ip address.
       # USERID logs the remote user (using RFC 1413)
       # EXIT logs the exit status of the server.
       # DURATION logs the duration of the session.
       log_on_success = HOST PID

       # What to log when the connection fails.  Same options as above
       log_on_failure = HOST RECORD

       # The maximum number of connections a specific IP address can
       # have to a specific service.  
       per_source  = 25
}
service ftp
{
    flags     = REUSE
       socket_type = stream
    wait        = no
       user        = root
       server      = /usr/sbin/ftpd
       server_args = -l
    disable     = no
}

service telnet
{
    flags     = REUSE
    socket_type = stream
       wait        = no
       user        = root
       server      = /usr/sbin/telnetd
    disable     = no
}



xinetd.d/telnet:
CODE
service telnet

{

    disable     = no

    flags     = REUSE

       socket_type = stream

    wait        = no
       
    user        = root
       
    server      = /usr/sbin/telnetd

}



xinetd.d/ftp:
CODE
service ftp

{

    disable    = no

    flags     = REUSE

       socket_type = stream

    wait        = no

       user        = root

       server      = /usr/sbin/ftpd

       server_args = -l

}




I feel like I have tried everything. Any ideas whats wrong?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th October 2017 - 08:57 PM