Sign in to follow this  
Followers 0
rob1101

Linux ftp server

13 posts in this topic

im looking to set up an ftp server on an old antique dell. Im not really planning to do anything big with it (just maybe store some text files at first). I really don't know how to go about it though. I can install debian on the machine but im not sure where to go from there.

0

Share this post


Link to post
Share on other sites

Try FreeNAS... file sharing made easy. Just set it up at home, and I like it a lot.

0

Share this post


Link to post
Share on other sites

There are a couple of FTP server packages in the Debian repo's, have a look and choose the one you think is the cutest.

http://packages.debian.org/search?keywords...amp;section=all

You should also think about:

1). Do yo want local user(names) used for login, or are you going to authenticate against another user list (ie. a user file, databse or via Radius or the like).

2). Are you going to chroot the ftp server. This is a good idea to prevent it from being able to access other parts of the file system.

Spoon Fed article:

http://www.debuntu.org/how-to-ftp-virtual-...h-proftpd-mysql

Cheers,

Munge.

0

Share this post


Link to post
Share on other sites

I like http://vsftpd.beasts.org/ Although I've never really given any other *nix ftp server a chance.

Lately Ive been using SCP for transferring files to remote boxes. You may want to look into that.

0

Share this post


Link to post
Share on other sites

I second the mention of VSFTPD. It is great and very easy to setup chroot.

Edited by delysid
0

Share this post


Link to post
Share on other sites

SFTP/SCP is a good idea. FTP transmits all data in the clear, even your passwords. It's fine for general anonymous access, but for moving around personal files, there's not much reason not to use SFTP. I've used WinSCP and FileZilla under Windows as SFTP clients, but I usually end up using PSFTP, which is the command-line SFTP client included with the PuTTY package.

0

Share this post


Link to post
Share on other sites

The only issue you'll have with SFTP is if you are hosting a public FTP, one wherein folks can come to grab files and can use an anonymous account.

Last time I checked, and there may have been advancements since, SFTP doesn't easily support an anonymous user (that only has FTP read rights, no upload or shell access). There isn't a whole lot of point to setting up an encrypted session for anonymous FTP, anyways. Its not like someone will sniff the line to steal your password. :P

Anyways, short story long: If you are setting up a public FTP box, you probably won't want to set up SFTP/SCP.

Edited by Dirk Chestnut
0

Share this post


Link to post
Share on other sites

Yeah, vsftpd or Filezilla Server if you don't mind something more heavyweight

0

Share this post


Link to post
Share on other sites

If you want to use SFTP in a chroot with an anonymous user check out jailkit.

Website:

http://olivier.sessink.nl/jailkit/index.html

I've used this software and its VERY useful. Here is the SFTP/SCP tutorial they have on their site...

http://olivier.sessink.nl/jailkit/howtos_sftp_scp_only.html

You can chroot nearly anything with this software. :D

0

Share this post


Link to post
Share on other sites

There's a lot of servers out there obviously and if you are using debian your choices are very open. I'm assuming you'll want to take the easiest way and will be apt getting the server. Just to see the results I searched the apt-cache I have for debian lenny.

apt-cache search "ftp server" |grep server > ftp.txt"

   atftpd - advanced TFTP server
awffull - web server log analysis program
bootp - server for the bootp protocol with DHCP support
curl - Get a file from an HTTP, HTTPS or FTP server
dart-server - a distributed testing and dashboard system server
dnsmasq - A small caching DNS proxy and DHCP/TFTP server
dnsmasq-base - A small caching DNS proxy and DHCP/TFTP server
fspd - A File Service Protocol (FSP) server
ftpd - FTP server
ftpd-ssl - FTP server with SSL encryption support
gadmintools - GTK+ server administration tools
heimdal-servers - Heimdal Kerberos - server programs
inetutils-ftpd - File Transfer Protocol server
krb5-ftpd - Secure FTP server supporting MIT Kerberos
libapache2-mod-php5 - server-side, HTML-embedded scripting language (Apache 2 module)
libfax-hylafax-client-perl - simple Perl client for HylaFAX fax server
libnet-server-perl - An extensible, general perl server engine
libnet-tftp-perl - Perl module for accessing TFTP servers
libpam-ncp - PAM module allowing authentication from a NetWare server
ncpfs - utilities to use resources from NetWare servers
netselect - Choose the fastest server automatically
obex-data-server - D-Bus service for OBEX client and server side functionality
pawserv - CERNLIB data analysis suite - distributed PAW and file transfer servers
php5-cgi - server-side, HTML-embedded scripting language (CGI binary)
pure-ftpd - Pure-FTPd FTP server
pure-ftpd-common - Pure-FTPd FTP server (Common Files)
pure-ftpd-ldap - Pure-FTPd FTP server with LDAP user authentication
pure-ftpd-mysql - Pure-FTPd FTP server with MySQL user authentication
pure-ftpd-postgresql - Pure-FTPd FTP server with PostgreSQL user authentication
tftpd - Trivial file transfer protocol server
tftpd-hpa - HPA's tftp server
twoftpd - a simple secure efficient FTP server (programs)
twoftpd-run - a simple secure efficient FTP server
util-vserver - user-space tools for Linux-VServer virtual private servers
webfs - lightweight http server for static content
wu-ftpd - powerful and widely used FTP server
wzdftpd - A portable, modular, small and efficient ftp server
libapache-mod-php4 - server-side, HTML-embedded scripting language (apache 1.3 module)
libapache-mod-php5 - server-side, HTML-embedded scripting language (apache 1.3 module)
libapache2-mod-php4 - server-side, HTML-embedded scripting language (apache 2 module)
php4-cgi - server-side, HTML-embedded scripting language (CGI binary)

I personally have always just used ftpd but as this shows there is plenty of options out there for debian that are very easy to install.

0

Share this post


Link to post
Share on other sites

thank you everyone for all the info this will surely help. Looks like i got some reading to do.

0

Share this post


Link to post
Share on other sites

I'm a systems engineer at a multi-million dollar ineternet company that relies entirely on having a stable ftp server, and I did this like a week ago. It was a RHEL (actually CentOS) box running vsftpd. Because we use LDAP and needed to potentially retrieve usernames/passwords we used the pam_mysql pam module as authentication.

For your scenario, my suggestion would be to install debian, install vsftpd and configure it to disallow anonymous users. Then create a user and group specifically for ftp uploads (i.e. "ftp:ftpUsers"). Configure the ftp server to chroot-jail the user to its home directory. Connect using your favorite ftp client (fliezilla etc...) and have fun. Remember ftp is NOT a secure protocol (unlike ssh) so don't use an actual username and password for your ftp account (like it is by default).

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0