Chapter 8
Running FTP
In This Chapter
Installing and starting the vsftpd
server
Configuring vsftpd
FTP is one of the oldest and still most common methods for sending files over the Internet. This chapter shows you how to install and configure the basic FTP server that comes with most Linux distributions, Very Secure FTP Daemon (vsftpd
). For complete information about this server, visit the official website at www.vsftpd.beasts.org
.
If you need to access files from someone’s FTP site or need instructions on setting up an FTP server on a Windows machine, please see Book III, Chapter 6.
Installing vsftpd
To install vsftpd
, open a console or terminal window and enter the following commands:
sudo dnf install vsftpd
Assuming that vsftpd
is not already installed, dnf
will ask for your permission to install it. Enter y to proceed. Be patient while the package downloads and installs.
Starting the vsftpd Service
After you install the vsftpd
package, you can start the FTP service by entering the following command at a console prompt:
/etc/init.d/vsftpd start
To restart the service, use this command:
/etc/init.d/vsftpd restart
Configuring FTP
You configure vsftpd
via a configuration file named vsftpd.conf
, located in /etc
. The default vsftpd.conf
file is shown in Listing 8-1 ...
Get Networking All-in-One For Dummies now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.