How-to Install proftpd on CentOS with yum

Trying to install proftp with yum on CentOS may return the error “No package proftpd available.” This is, quite simply, because proftpd isn’t included in the standard repo for yum. Using a repo provided by will fix this.

Using SSH (such as Putty), do the following

cd /etc/yum.repos.d/
rpm --import

After which we have to edit the file to enable the testing section. Set enabled=1 in both sections:

vim /etc/yum.repos.d/kbsingh-CentOS-Extras.repo

Add /bin/false at the end of /etc/shells:

vim /etc/shells

At this point, you can create a user for logging in to FTP and yum install the actual program, all should go smoothly.   Remember to set enabled back to 0 (zero) after you’re done, just to clean up.

useradd ftpmon -ppassword -d /var/www -s /bin/false
passwd ftpmon
yum install proftpd
/etc/init.d/proftpd start

Leave a Reply

Your email address will not be published. Required fields are marked *