Red Hat / CentOS

How To Install Pure-FTPd on CentOS 8

How To Install Pure-FTPd on CentOS 8


Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant FTP server. It doesn’t provide useless bells and whistles, but focuses on efficiency and ease of use. It provides simple answers to common needs, plus unique useful features for personal users as well as hosting providers.

Why Pure-FTPd?

Because it is actively supported, and it was always designed with security in mind, and the code is always re-audited as new kind of vulnerabilities are discussed.

How To Install Pure-FTPd on CentOS 8

1. First add EPEL yum repository your system.

CentOS 7:

# rpm -Uvh

CentOS 8:

# rpm -Uvh

2.Installing Pure-FTPd on CentOS

# yum install pure-ftpd -y

3. Configuring Pure-FTPd server.

Type the following command to edit Pure-FTPd configuration file.

# nano /etc/pure-ftpd/pure-ftpd.conf

Make sure you have this options:

# If you want simple Unix (/etc/passwd) authentication, uncomment this
UnixAuthentication            yes
ChrootEveryone yes
NoAnonymous yes
# PureDB user database (see README.Virtual-Users)
PureDB /etc/pure-ftpd/pureftpd.pdb
# Automatically create home directories if they are missing
CreateHomeDir yes

Finally, save Pure-FTPD user database.

# pure-pw mkdb

Add a virtual user.

# pure-pw useradd ftpuser -u user -g group -d /var/www/

4. Start service and enable the service to start on boot.

# systemctl start pure-ftpd 
#systemctl enable pure-ftpd

and enable to open ftp port 21 on centos using firewalld

# firewall-cmd --permanent --zone=public --add-service=ftp
# firewall-cmd --reload

test open port

# lsof -i:21

5.Now open up your favorite ftp client like FileZilla then enter the detail:

  • Host : Enter your server’s IP or hostname (if you’ve added A record to it in your DNS).
  • Username : Use what you defined in step 4 section B above.
  • Password : Use what you defined in step 5 section B above.
  • Port : use Port 21

Once done hit the Connect button. screenshot:

How To Install Pure-FTPd on CentOS 8

You’ll finally see the “Status:Directory listing successful” message indicating you are now logged in.

How To Install Pure-FTPd on CentOS 8


Now you know How To Install Pure-FTPd on CentOS 8. You should be able to login to your server via Pure-FTPd and start transferring files.

About the author

jon snow

Jon is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, and currently a content creator for ERRORHAT who loves working with computers and strongly believes in sharing knowledge.

Add Comment

Click here to post a comment