Pure-FTPd is a popular open-source FTP server that is easy to install and configure on various Linux distributions. In this tutorial, we will guide you through the steps of installing and configuring Pure-FTPd server on RHEL 7 Linux.
- A server running RHEL 7 Linux with root access
- Basic knowledge of Linux command-line interface
Step 1: Install Pure-FTPd on RHEL 7 Linux
The first step is to install Pure-FTPd on your RHEL 7 Linux server. You can do this by running the following command in the terminal:
sudo yum install pure-ftpd
Step 2: Create a new user for FTP access
Once you have installed Pure-FTPd, you need to create a new user account for FTP access. You can do this by running the following command:
sudo useradd -d /var/www/html -s /sbin/nologin ftpuser
This command creates a new user account named ftpuser, with a home directory of /var/www/html and a login shell of /sbin/nologin. You can replace ftpuser with any username you like, and change the home directory to any location you prefer.
Step 3: Configure Pure-FTPd
Next, you need to configure Pure-FTPd to allow FTP access for the new user account. To do this, open the Pure-FTPd configuration file with the following command:
sudo nano /etc/pure-ftpd/pure-ftpd.conf
In this file, you need to make the following changes:
- Uncomment the line that starts with #PureDB and change it to PureDB /etc/pure-ftpd/pureftpd.pdb
- Uncomment the line that starts with #CreateHomeDir and change it to CreateHomeDir yes
Save and close the file.
Step 4: Start Pure-FTPd
Once you have configured Pure-FTPd, you need to start the service by running the following command:
sudo systemctl start pure-ftpd
You can also enable the service to start automatically at boot time by running the following command:
sudo systemctl enable pure-ftpd
Step 5: Test FTP access
Finally, you need to test FTP access to make sure everything is working correctly. You can do this by connecting to the FTP server using an FTP client such as FileZilla. Enter the IP address of your RHEL 7 Linux server, along with the username and password you created in Step 2.
If you can successfully connect to the FTP server and upload/download files, then Pure-FTPd has been successfully installed and configured on your RHEL 7 Linux server.
In this tutorial, we have shown you how to install and configure Pure-FTPd on RHEL 7 Linux. By following the steps outlined in this guide, you should now have a fully functional FTP server that can be used to transfer files securely over the internet. If you have any questions or comments, please leave them in the comments section below.
Related Searches and Questions asked:
That's it for this post. Keep practicing and have fun. Leave your comments if any.
Post a Comment