Blog:http://lijinhuan.blog.51cto.com/
Weibo:http://weibo.com/lijinhuanexperience
: Xiaoleetongxue
First, installation
(1) Wget-c ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.4b.tar.gz
(2) Tar zxf proftpd-1.3.4b.tar.gz
(3) CD proftpd-1.3.4b
(4)./configure--PREFIX=/USR/LOCAL/PROFTPD
(5) Make && make install
Two, software connection creation
Ln-s/usr/local/proftpd/sbin/proftpd/usr/local/bin/
Ln-s/usr/local/proftpd/bin/ftpasswd/usr/local/bin/
Third, modify the configuration file/usr/local/proftpd/etc/proftpd.conf
ServerName "ProFTPD FTP Server"
ServerType Standalone
Defaultserver on
Port 21
UseIPv6 off
Umask 022
Maxinstances 30
User Nobody
Group Nogroup
Passiveports 20000 30000
Defaultroot ~
AllowOverwrite on
Allowretrieverestart on
Allowstorerestart on
Usereversedns off
Identlookups off
Serverident off
Requirevalidshell off
authuserfile/usr/local/proftpd/etc/ftpd.passwd
Authorder mod_auth_file.c mod_auth_unix.c
AllowOverwrite on
<limit site_chmod>
Denyall
</Limit>
Systemlog/usr/local/proftpd/var/log/proftpd.log
Include/usr/local/proftpd/etc/vhost/*.conf
Iv. Modifying Firewalls
/sbin/iptables-i input-p TCP--dport 21-j ACCEPT
/sbin/iptables-i input-p TCP--dport 20-j ACCEPT
/sbin/iptables-i input-p TCP--dport 20000:30000-j ACCEPT
/sbin/iptables-save
Five. Add FTP user
Mkdir/usr/local/proftpd/etc/vhost
Mkdir/home/lijinhuan
Useradd-s/sbin/nologin-d $userdir-C "PROFTPD user" $username
Cat >/tmp/$user. passwd<<eof
Lijinhuan:lijinhuanpass
Eof
CHPASSWD </TMP/LIJINHUAN.PASSWD
Cat >/usr/local/proftpd/etc/vhost/lijinhuan.conf<<eof
<directory $userdir >
<limit all>
Allowuser Lijinhuan
</Limit>
</Directory>
Eof
/USR/LOCAL/PROFTPD/SBIN/PROFTPD start
Chown-r-V Lijinhuan:lijinhuan/home/lijinhuan
Six, detailed description:
http://linux.vbird.org/linux_server/0410proftpd.php
http://blog.fens.me/linux-ftp-proftpd/
PROFTPD Service installation management of Linux data collation