Again, there’s no PureFTPd package in the official CentOS 5.0 repositories, but the repository has a PureFTPd package for CentOS 5.0 (in thekbs-CentOS-Testing repository). Therefore we add this repository to our official CentOS repositories:

cd /etc/yum.repos.d/

Now we must enable the kbs-CentOS-Testing repository. To do this, we open the file kbsingh-CentOS-Extras.repo and change enabled=0 to enabled=1 in thekbs-CentOS-Testing stanza:

vi kbsingh-CentOS-Extras.repo

name=CentOS.Karan.Org-EL$releasever - Testing

Then we import the GPG key of our new repository:

rpm –import

Now we can install PureFTPd:

yum install pure-ftpd

Then we create an ftp group (ftpgroup) and user (ftpuser) that all our virtual users will be mapped to. Replace the group- and userid 2001 with a number that is free on your system:

groupadd -g 2001 ftpgroup
useradd -u 2001 -s /bin/false -d /bin/null -c “pureftpd user” -g ftpgroup ftpuser

Post By Editor (2,827 Posts)

Website: →