Again, there’s no PureFTPd package in the official CentOS 5.0 repositories, but the centos.karan.org 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/
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo

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

[...]
[kbs-CentOS-Testing]
name=CentOS.Karan.Org-EL$releasever - Testing
gpgcheck=1
gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
enabled=1
baseurl=http://centos.karan.org/el$releasever/extras/testing/$basearch/RPMS/

Then we import the GPG key of our new repository:

rpm –import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt

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: →

Connect