Configuring the FTP Server
The FTP service involves a fairly large number of configuration files; some of them exist in /etc, and some are in /var/ftp/etc. The reason for this is that some of the files have to be accessible by anonymous FTP users, and, as we've seen, such users can't see any files outside of /var/ftp. Let's look at a few of the files in /etc, which apply globally to the FTP server as a whole.
/etc/ftpusers. A “blacklist” of users who are disallowed FTP access. Add usernames to this file to prevent them from logging in via FTP.
/etc/ftpchroot. Any users listed in this file will be placed in a chroot “jail” similar to that of anonymous FTP, limiting the user's access solely to his home directory.
/etc/ftphosts. Allows you to configure ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access