Ftpádas

Embed Size (px)

Citation preview

  1. 1. SETUP PURE-FTPD SInstall pure-ftpd serviceStep 1. Add EPEL repositoryrpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmStep 2. Install the packageyum -y install pure-ftpdStep 3. Start the serviceservice pure-ftpd startStep 4. Enable the service to start on bootchkconfig pure-ftpd onStep 5. Add firewall rules for the ftp serveriptables -I INPUT -m tcp -p tcp --dport 20:21 -j ACCEPTSetup virtual users on pure-ftpd serverStep 1. Edit the config filevim /etc/pure-ftpd/pure-ftpd.confMake sure you have this options:ChrootEveryone yesNoAnonymous yes# PureDB user database (see README.Virtual-Users)PureDB /etc/pure-ftpd/pureftpd.pdb# Automatically create home directories if they are missingCreateHomeDir yesStep 2. Add a virtual user.This adds a virtual user test to pureftpd.pass filepure-pw useradd test -u ftpusers -g ftpusers -d /home/ftpusers/testImport the updated pureftpd.passwd file into a puredb file.pure-pw mkdb