
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
392
|
Chapter 11: Securing File Services
script on my sample server represented by Examples 11-9 and 11-10 would need
something equivalent to these two lines:
vsftpd /etc/vsftpd.knusper
vsftpd /etc/vsftpd.rover
If you run Red Hat or Fedora, this has already been taken care of for you: the /etc/
init.d/vsftpd script included with those distributions’ vsftpd RPM packages automati-
cally parses the directory /etc/vsftpd for as many configuration files as you care to put
there, so long as the filename of each ends in .conf. This strikes me as an excellent bit
of foresight on the part of the Red Hat team.
That’s all you need to know about setting up a simple and secure anonymous FTP
server with vsftpd. But as I mentioned, I’ve covered only a subset of what vsftpd is
capable of doing; despite its minimalist design philosophy, this is a powerful FTP
server indeed. Fortunately, it’s also very well documented, so it’s really no cop-out
for me to refer you to the vsftpd.conf(5) manpage and the EXAMPLE directory for
information on the many other uses of vsftpd.
Other File-Sharing Methods
Despite the amount of ink I’ve devoted here to FTP, I’ve also said repeatedly that
despite its ubiquity, FTP is one of the least secure and least securable file-transfer
techniques. The remainder of this chapter therefore ...