Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pure FTP server started by xinetd wont read conf.d/pure-ftpd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
samwiseuk
n00b
n00b


Joined: 12 Jun 2004
Posts: 4

PostPosted: Sat Jun 12, 2004 11:21 am    Post subject: Pure FTP server started by xinetd wont read conf.d/pure-ftpd Reply with quote

I installed gentoo a few weeks ago and have been trying to setup an FTP server but have been struggling to understand how the particular package I've installed is configured.

After reading recommendations from these forums, I went with Pure FTP and emerged version 1.0.16b. I've been struggling getting the server to accept my configuration and allow logins, however, so I forced an upgrade to 1.0.16c, after reading how this had helped with someone else's problems. I finally have it running and it will allow me to login.

However, here's the thing: I need to restrict the passive mode ports to a certain range (using the -p flag). The server will not follow this directive if I place it in the /etc/conf.d/pure-ftp config file. It will only read it if it's in my /etc/xinetd.d/pure-ftp launcher file.

So, why isn't the /etc/conf.d/pure-ftpd config file read when the process is started by xinetd? :?:

Any help appreciated!

Sam.
Back to top
View user's profile Send private message
banadushi
n00b
n00b


Joined: 26 Jun 2003
Posts: 37
Location: San Antonio, TX USA Earth

PostPosted: Sat Jun 12, 2004 11:37 am    Post subject: Reply with quote

/etc/conf.d/pure-ftpd is only read by the startup script for running pure-ftpd as a standalone server. If running through xinetd you need to edit the /etc/xinetd.d/pure-ftpd and modify the server line to call the binary with your options such as:

server = /usr/sbin/pure-ftpd -p [value]

of course editing [value] to suite your needs.

l8

Jason
Back to top
View user's profile Send private message
samwiseuk
n00b
n00b


Joined: 12 Jun 2004
Posts: 4

PostPosted: Sat Jun 12, 2004 1:04 pm    Post subject: Reply with quote

Ah. Exactly the conclusion I'd arrived at. I just wish I'd known that when I first installed pure. I wonder now if the upgrade to 1.0.16c was actually necessary or just a problem because I had all the configuration in the conf.d/pure-ftpd file at the time.

hmm ... pity there's no way for me to go back to the original config.

ah, well.

Thanks!

Sam.
Back to top
View user's profile Send private message
redmoth
n00b
n00b


Joined: 05 Apr 2005
Posts: 1

PostPosted: Thu Apr 07, 2005 3:37 am    Post subject: Reply with quote

there is an option in xinetd that allows you to add those switches called server_args

in other words you add a line in the format 'server_args = -p [value]' so that you can add the passive port range

inside the file /set/xinetd.d/pure-ftpd/ it might look like this (to beat a dead horse)

Code:


service ftp
{
        socket_type = stream
        server = /usr/sbin/pure-ftpd
        server_args = -a 408 -c 5 -i -F /root/FTPmessage -R -O clf:/var/log/pureftpd.log -N
        protocol = tcp
        user = root
        wait = no
        disable = no
        only_from 0.0.0.0/0
}



-redmoth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum