O'Reilly logo

Networking All-in-One For Dummies by Doug Lowe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8

Running FTP

In This Chapter

arrow Installing and starting the vsftpd server

arrow 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required