Installare un server FTP con ProFTPD

Da Guide@Debianizzati.Org.
Versione del 7 nov 2008 alle 13:04 di Ferdybassi (discussione | contributi) (Nuova pagina: ===Installare un server FTP su Debian=== Installare un server FTP su Debian è un'operazione non particolarmente complessa, ma che merita alcune attenzioni. In questa guida utilizzerò...)
(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)
Vai alla navigazione Vai alla ricerca

Installare un server FTP su Debian

Installare un server FTP su Debian è un'operazione non particolarmente complessa, ma che merita alcune attenzioni. In questa guida utilizzerò ProFTPD, un ftp server scritto per essere utilizzato su Unix e sistemi operativi Unix-like come il nostro Linux. written for use on Unix and Unix-a-like operating systems, there is no support for native use under Microsoft Windows.

Caratteristiche di ProFTPD

  • utilizza un singolo file di configurazione, con direttive molto familiari per chi è già abituato ad amministrare web server Apache
  • permette la configurazione di files ".ftpaccess" e di server FTP virtuali in maniera simile ad Apache
  • non permette comandi SITE EXEC, riducendo così lo stress da sicurezza dell'amministratore
  • supporta IPv6

= Installazione di ProFTPD

Per installare il server proftpd basta lanciare i seguenti comandi da root:

# apt-get update
# apt-get install proftpd

L'installer del server FTP vi chiederà in che modo intendere far girare proftpd, attraverso inetd o in modalità standalone. Mi sento di consigliare la modalità standalone che, da quanto letto in rete, sembra la più adatta per siti FTP con traffico intenso o assai variabile.

Proftp Server

Il file di configurazione si trova in /etc/proftpd/proftpd.conf
Alcune direttive degne di nota sono le seguenti:

  • ServerName — Permette di indicare il nome che apparirà agli utenti:
ServerName “proftp server”

ServerIdent — Set the message displayed on connect

ServerIdent on “Welcome to proftp server”

UseReverseDNS — Toggle rDNS lookups

UseReverseDNS off

IdentLookups — Toggle ident lookups

IdentLookups off

DefaultRoot — Sets default chroot directory

DefaultRoot ~

MaxClients — Limits the number of users that can connect

Maxclients 30

MaxClientsPerHost — Limits the connections per client machine

MaxClientsPerHost 50

After adding these directives you need to restrat your proftpd server to take these changes effect.

  1. /etc/init.d/proftpd restart

If you want to know about the proftpd server security configuration check here

If you want some examples of proftpd configuration check here

Proftp Client Installation

If you want to use commnd line ftp client in debian you need to install the ftp package using the following command

  1. apt-get install ftp

By default users can FTP in to their own home directories only