Yum-y install Pam-develwget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.36.tar.gztar zxf pure-ftpd-1.0.36.tar.gzcd pure-ftpd-1.0.36. /configure -- prefix =/usr/local/pure-ftpd/-- With-puredbmake & make check & make installmkdir-P/usr/local/pure-ftpd/etc/touch /usr/local/pure-ftpd/etc/pureftpd. passwd/usr/local/pure-ftpd/bin/pure-PW mkdb/usr/local/pure-ftpd/etc/pureftpd. pdbcd/usr/local/pure-ftpd-1.0.36/configuration-filevim/usr/local/pure-ftpd-1.0.36/configuration-file/pure-ftpd.conf # pure-ftpd.conf in the configuration file # specify the PDB location puredb/usr/local/pure- ftpd/etc/pureftpd. PDB # modify port passiveportrange 30000 30500 chmod 777/usr/local/pure-ftpd-1.0.36/configuration-file/pure-config.pl/usr/local/pure-ftpd-1.0.36/configuration-file/pure-config.pl/usr/local/pure-ftpd-1.0.36/ configuration-file/pure-ftpd.confgroupadd ftp_useruseradd wfc_ftpgpasswd-A wfc_ftp ftp_user # view group information Id wfc_ftp # Probably output the following content # uid = 502 (wfc_ftp) gid = 503 (wfc_ftp) group = 503 (wfc_ftp), 502 (ftp_user) # create the user's FTP root directory mkdir-P/data/ftp_data/wfcchown wfc_ftp: ftp_user/data/ftp_data/WFC # Add User # syntax/usr/local/pure-ftpd/bin/pure-PW useradd $ user-U $ UID-G $ GID-d $ dir-M/usr/local/pure-ftpd/bin/pure-PW useradd wfc_ftp-u 502-G 503-D/data/ftp_data/WFC-M # add firewall rule Vim /etc/sysconfig/iptables # Add-A input-p tcp -- dport 21-J ACCEPT-A input-p tcp -- dport 30000 at the appropriate position: 30500-J accept # Heavy Load firewall rule service iptables restart # view existing users/usr/local/pure-ftpd/bin/pure-PW list # delete users/usr/local/pure- ftpd/bin/pure-PW userdel $ user-M # Change Password/usr/local/pure-ftpd/bin/pure-PW passwd $ user-m
Pure-ftpd installation tutorial (excellent FTP service)