If you're looking for a secure and reliable way to transfer files over the internet, FTP is a great choice. One of the most popular FTP servers is Pure-FTPd, which is known for its simplicity and security. In this article, we will show you how to install and configure Pure-FTPd server on CentOS 8.
Step 1: Install Pure-FTPd
First, we need to install Pure-FTPd on our CentOS 8 server. To do this, open a terminal window and run the following command:
sudo dnf install pure-ftpd
Step 2: Configure Pure-FTPd
Once Pure-FTPd is installed, we need to configure it. The main configuration file for Pure-FTPd is located at /etc/pure-ftpd/pure-ftpd.conf. You can open this file in your favorite text editor and make changes as needed.
For example, if you want to enable anonymous FTP access, you can uncomment the following line:
# AnonymousOnly yes
And change it to:
Step 3: Create FTP Users
Now that we have Pure-FTPd installed and configured, we can create FTP users. To create a new user, run the following command:
sudo pure-pw useradd USERNAME -u ftpuser -d /path/to/directory
Replace USERNAME with the username you want to create, and /path/to/directory with the directory you want the user to have access to.
Next, we need to set a password for the new user. Run the following command:
sudo pure-pw passwd USERNAME
Follow the prompts to set the password.
Step 4: Start Pure-FTPd
To start Pure-FTPd, run the following command:
sudo systemctl start pure-ftpd
If you want Pure-FTPd to start automatically at boot, run the following command:
sudo systemctl enable pure-ftpd
Step 5: Test FTP Connection
To test the FTP connection, you can use any FTP client of your choice. Connect to your server using the hostname or IP address, and enter the username and password you created earlier.
Congratulations! You've successfully set up Pure-FTPd server on CentOS 8.
- To delete a user, use the following command:
sudo pure-pw userdel USERNAME
- To list all FTP users, use the following command:
sudo pure-pw list
- To disable SSL/TLS encryption, uncomment the following line in /etc/pure-ftpd/pure-ftpd.conf:
# TLS 2
Related Searches and Questions asked:
That's it for this post. Keep practicing and have fun. Leave your comments if any.
Post a Comment