LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2005, 11:36 PM   #1
slackster
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware
Posts: 12

Rep: Reputation: 0
Unhappy vsftpd inetd -> xinetd


comfortable Slackware-user 'turned' Gentoo, here's my story:

i've got vsftp up and running smoothly on Slackware 10.1 through inetd
when i emerged vsftpd from Gentoo it merged xinetd instead of inetd

i thought, no problem, i don't mind rewriting some config files if it keeps me up to date.

it was a bit of a downer to find out the standard vsftpd-xinetd config was not working..
however, the strangest thing happened: i can get vsftp working though my old inetd config file using the `xinetd -d -inetd_compat` switch, but when i change the xinetd config file so that it creates the exact same output when running xinetd in debugging mode, it still won't work properly. [lftp with 'debug 5' gives: **** Socket error (Connection refused)]

i can provide the xinetd.conf, xinetd.d/vsftp and inetd.conf but i think the problems lies in the fact that the different types of config files are handled differently by xinetd, beyond what is visible in the debug output even. maybe someone has shared some of my experiences?

add: perhaps i was too quick to finish this post, let me paint a more vivid picture of the problem:
the service starts, and generates the same output with the xinetd-vsftpd-config as with the inetd-config, but when i actually try to connect this line is printed in the debug window:
05/6/27@03:36:14: DEBUG: 6707 {check_pipe} Got signal 17 (Child exited)

so it's a 'Signal 17'-prob i got going, maybe that rings a bell to someone

Last edited by slackster; 06-26-2005 at 06:42 PM.
 
Old 06-26-2005, 01:34 PM   #2
nazir
Member
 
Registered: Apr 2002
Location: Poland, Gliwice/Pszczyna
Distribution: Mandrake, Slackware
Posts: 41

Rep: Reputation: 15
could you provide xinetd config file?

i've got something like that and it works fine
Code:
service ftp
{
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/sbin/vsftpd
        nice                    = 10
        disable                 = no
}
 
Old 06-26-2005, 05:37 PM   #3
slackster
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware
Posts: 12

Original Poster
Rep: Reputation: 0
the config files..

/etc/inetd.conf
ftp stream tcp nowait root /usr/sbin/tcpd vsftpd

/etc/xinetd.d/vsftp
service ftp
{
disable = yes
id = ftp
flags = REUSE NAMEINARGS NOLIBWRAP IPv4
socket_type = stream
wait = no
user = 0
groups = yes
server = /usr/sbin/tcpd
server_args = vsftpd
only_from = all
}

standard Gentoo provided:

service vsftpd
{
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
server_args = /etc/vsftpd/vsftpd.conf
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
disable = yes
flags = IPv6
}

add: with inetd i was used to not-running vsftpd as a daemon, but it seems xinetd requires me to. i updated the vsftpd.conf now and am able to do:
`/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf` successfully. however, running from xinetd still gives me the 'signal 17' upon listing the directory contents..

Last edited by slackster; 06-26-2005 at 08:10 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inetd or Xinetd? allelopath Linux - Software 2 04-13-2005 01:03 PM
xinetd vs inetd alaios Linux - Security 6 05-01-2004 11:30 AM
inetd vs xinetd nero64 Linux - Newbie 1 11-26-2002 08:13 AM
inetd VS xinetd dave4545 Linux - Newbie 22 10-24-2002 07:07 PM
Xinetd vs. Inetd JHuizingh Linux - General 2 07-19-2002 09:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration