Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > help with xinetd+proftpd

help with xinetd+proftpd
Thread Tools
Forum Regular
Join Date: Apr 2001
Location: NY, NY, USA
Status: Offline
Reply With Quote
Jan 26, 2003, 04:23 PM
 
I installed proftpd via Fink so I can replace ftpd with it. Putting proftpd in /etc/xinetd.d/ftp didn't work, so I reverted back to the original ftp file so I could try again, one step at a time. Now the regular ftpd won't even start. When I type xinetd in the terminal I get the following in my console:

Error reading included directory: /etc/xinetd.d [line=11]

And also: bind failed (Permission denied (errno = 13)). service = ftp

Does anyone know what's going on? I'm at a loss now, since I believe I am using the standard Apple installed files and they have not returned to working order!
- Sahara
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Jan 28, 2003, 02:12 PM
 
A 'bind error' means that the server could not connect to the specified port.

Two causes come to mind.

First, another server is already running on that port. Are you sure proftpd didn't start and isn't sitting there running on your machine? What happens if you telnet to port 21 on localhost? Do you get a connection.

Second is that ftp uses a privileged port number, consequently it has to be executed as root. Are you using root/sudo to reload xinetd? (I'm guessing so, but it never hurts to ask. )
Gods don't kill people - people with Gods kill people.
     
sahara  (op)
Forum Regular
Join Date: Apr 2001
Location: NY, NY, USA
Status: Offline
Reply With Quote
Jan 28, 2003, 10:23 PM
 
All I've done is replace the path to ftpd with the one to proftpd. I was able to get ftpd working again and can literally swap between ftpd and proftpd and the result is simply that ftpd works, and proftpd does not launch. When I attempt to use proftpd with xinetd, I verify that no other daemon is on port 21. It gives the "Error reading included directory" message and does not run proftpd.

It seems to me to mean that there is some kind of incorrect command in the ftp entry for xinetd, though I cannot figure out what. (Yes, I am using sudo to run xinetd.) My proftpd path is /sw/sbin/proftpd and I have tried different server_args including -c /sw/etc/proftpd.conf, -n, and removing the server_args line entirely, all with no success. If I run the command manually it works, so why does it not execute via xinetd? I cannot fathom where the problem even lies at this point.

For now, I have set up a startup item that launches proftpd, while ftp is off in sharing control panel. By no means does this imply that I don't want to get it working through xinetd though, for a variety of reasons.
- Sahara
     
Mac Enthusiast
Join Date: Sep 2000
Location: France
Status: Offline
Reply With Quote
Jan 29, 2003, 09:20 AM
 
I don't know if that helps, but here's the content of my ftp file in the xinetd.d directory.
service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/local/sbin/proftpd
server_args = -c /usr/local/etc/proftpd.conf
groups = yes
flags = REUSE
}
It does work for me.
     
sahara  (op)
Forum Regular
Join Date: Apr 2001
Location: NY, NY, USA
Status: Offline
Reply With Quote
Jan 29, 2003, 04:09 PM
 
That's basically what I have, except since I installed it with Fink, the path is /sw/sbin/proftpd instead of /usr/local/sbin/proftpd.
- Sahara
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:14 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2