LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-11-2007, 04:39 PM   #1
navic
LQ Newbie
 
Registered: Apr 2007
Location: NY
Distribution: Mint, Ubuntu, Debian, Voyage, Finnix
Posts: 22

Rep: Reputation: 0
Question 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!
 
Old 06-11-2007, 05:38 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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".
 
Old 06-11-2007, 11:11 PM   #3
navic
LQ Newbie
 
Registered: Apr 2007
Location: NY
Distribution: Mint, Ubuntu, Debian, Voyage, Finnix
Posts: 22

Original Poster
Rep: Reputation: 0
vsftp worked perfectly. Thanks for the help!
 
Old 06-12-2007, 03:50 AM   #4
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 630

Rep: Reputation: 36
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
 
Old 06-12-2007, 12:18 PM   #5
vglass
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
In plesk , I wish to have a backup cron job, ftp back up file to another ftp server? muskiediver Linux - General 6 07-16-2009 03:13 AM
ftp from LInux to Serv-U ftp server problem csross Linux - General 2 11-07-2005 04:35 PM
ftp server - Pure ftp - logs in OK but no files visible tp11235 Linux - Networking 2 08-30-2005 05:11 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 08:23 AM


All times are GMT -5. The time now is 09:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration