If you're looking for a lightweight and secure FTP server for your Linux RHEL 8 system, Pure-FTPd is an excellent choice. It is an open-source FTP server that supports several authentication methods, including virtual users, and is known for its simplicity and ease of use.
In this article, we will guide you through the process of setting up Pure-FTPd Server on Linux RHEL 8.
Prerequisites
To follow this guide, you will need:- A Linux RHEL 8 system with root privileges
- An SSH client, such as PuTTY or OpenSSH, to connect to the server
- A basic understanding of the Linux command line interface
Step 1: Install Pure-FTPd Server
The first step is to install Pure-FTPd Server on your Linux RHEL 8 system. You can use the following command to install it:
sudo dnf install pure-ftpd
Once the installation is complete, start the Pure-FTPd service using the following command:
sudo systemctl start pure-ftpd
To verify that the service is running, use the following command:
sudo systemctl status pure-ftpd
You should see output similar to the following:
pure-ftpd.service - Pure-FTPd FTP server
Loaded: loaded (/usr/lib/systemd/system/pure-ftpd.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2023-04-21 12:00:00 EDT; 2min ago
Main PID: 12345 (pure-ftpd)
Tasks: 1 (limit: 98304)
Memory: 1.2M
CGroup: /system.slice/pure-ftpd.service
12345 /usr/sbin/pure-ftpd -s -l puredb:/etc/pure-ftpd/pureftpd.pdb -E -j -A -Z -H -4 -B
Apr 21 12:00:00 rhel8 systemd[1]: Started Pure-FTPd FTP server.
Step 2: Configure Pure-FTPd Server
Now that the Pure-FTPd service is up and running, you need to configure it to work with your system. The main configuration file for Pure-FTPd is located at /etc/pure-ftpd/pure-ftpd.conf. Open this file using your preferred text editor:
sudo nano /etc/pure-ftpd/pure-ftpd.conf
In this file, you can configure various options for the Pure-FTPd server. Some of the most commonly used options are:
ChrootEveryone
: This option specifies whether or not to chroot all users. By default, it is set to "yes," which means that all users will be chrooted to their home directory.NoAnonymous
: This option specifies whether or not to allow anonymous FTP connections. By default, it is set to "yes," which means that anonymous FTP connections are not allowed.PureDB
: This option specifies the location of the Pure-FTPd user database. By default, it is set to "/etc/pure-ftpd/pureftpd.pdb".UnixAuthentication
: This option specifies whether to use Unix authentication or not. By default, it is set to "yes," which means that Unix authentication is used.
Once you have made the necessary changes, save the file and exit the editor.
Step 3: Create FTP Users
Now that you have configured Pure-FTPd, you can create FTP users. You can create virtual users or local system users.
Related Searches and Questions asked:
That's it for this post. Keep practicing and have fun. Leave your comments if any.
0 Comments