Ho editato il file /etc/proftpd.conf come segue:
Codice: Seleziona tutto
ServerName "ProFTPD Default Installation"
ServerType standalone
#ServerType inetd
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
DefaultRoot ~
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User ftp_user
Group ftp
# This next option is required for NIS or NIS+ to work properly:
#PersistentPasswd off
SystemLog /var/log/proftpd.log
TransferLog /var/log/xferlog
# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite off
</Directory>
MaxInstances 30
ServerIdent off
L'ho aggiunto al gruppo ftp e gli ho dato come home /home/ftp
Avvio il demone
Codice: Seleziona tutto
in.proftpdPer iptables ho aperto la porta 21
Codice: Seleziona tutto
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT udp -- anywhere anywhere udp dpt:ftp
Codice: Seleziona tutto
Stato: Connessione a 192.168.1.2:21...
Stato: Connessione stabilita, in attesa del messaggio di benvenuto...
Risposta: 500 FTP server shut down (Sat Nov 1 12:32:26 2008 , Current connections will be dropped: Sat Nov 1 12:22:26 2008) -- please try again later
Errore: Errore grave
Errore: Impossibile collegarsi al server
rock
