LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   FTP Server (https://www.linuxquestions.org/questions/slackware-14/ftp-server-560993/)

navic 06-11-2007 04:39 PM

FTP Server
 
I'm running Slackware 10.2, no GUI and was wondering how to setup an FTP server that starts automatically upon boot. Thanks!

MS3FGX 06-11-2007 05:38 PM

First you need to have an FTP server installed. 10.2 should come with both ProFTPd and vsftp. Whichever one you use is up to you, but Pat chose to include vsftp after ProFTPd was lax in addressing a serious security issue. It is still included in Slackware for backwards compatibility reasons, but vsftp is now the default and preferred server (and arguably is of higher quality in the first place).

After you have installed one of those daemons (which are located on the first CD of the installation) you would need to open up /etc/inetd.conf and uncomment the line that corresponds to the server you have chosen. The two lines will look like this:

Code:

# Very Secure File Transfer Protocol (FTP) server.
#ftp    stream  tcp    nowait  root    /usr/sbin/tcpd  vsftpd
#
# Professional File Transfer Protocol (FTP) server.
#ftp    stream  tcp    nowait  root    /usr/sbin/tcpd  proftpd

You simply delete the "#" from in front of the one server you want to start. So if you wanted to use vsftp, then it would look like this:

Code:

# Very Secure File Transfer Protocol (FTP) server.
ftp    stream  tcp    nowait  root    /usr/sbin/tcpd  vsftpd
#
# Professional File Transfer Protocol (FTP) server.
#ftp    stream  tcp    nowait  root    /usr/sbin/tcpd  proftpd

Then you need to have the file get re-read by inetd. To do this you could simply reboot the machine, or run the command "killall -HUP inetd".

navic 06-11-2007 11:11 PM

vsftp worked perfectly. Thanks for the help!

nass 06-12-2007 03:50 AM

since you guys bugged me here,
im looking into switching from proftpd to vsftpd... i mean you did say vsftpd is the future eh?
what are ptoftpd's shortcomings?

i went ahead and read the manual of vsftpd.conf

while i now know how to customize it to my liking, there is a few things i didn't come across in there. i have a dynamic ip and thus in proftpd i had to use 'masquerade address'... additionally, since that was not enough, i recompiled proftpd with dynmasq module so that it would 're-read' the current ip outside my home network every so often.

is there a similar feature in vsftpd?

and also, how do i 'create' an ftp tree?. with proftpd you have the

<Anonymous ~ftp>
<Directory /incoming>
etcetc

directives that allow you create an otherwise non existent in the file system tree, for the ftp sessions and fully customise its dir/file read/write/delete properties...

how do you do that in vsftpd? cause i only saw global read/write/delete etc switches....

thank you

vglass 06-12-2007 12:18 PM

another FTP server to consider is JSCAPE Secure FTP Server

http://www.jscape.com/secureftpserver/

free community edition has support for FTP/S and a cross-platform Java based remote admin tool. Instructions are also available on using an init.d script file for automatic startup.


All times are GMT -5. The time now is 09:02 PM.