vsftpd

From Gentoo Wiki
Jump to: navigation, search

External resources

vsftpd (Very Secure FTP Daemon) is a major FTP server.

Installation

Install net-ftp/vsftpd:

root # emerge --ask vsftpd

Configuration

Anonymous read access

File/etc/vsftpd/vsftpd.conf

listen=YES
local_enable=NO
anonymous_enable=YES
write_enable=NO
anon_root=/home/ftp

SECCOMP Filtering and 64-bit Kernels with =net-ftp/vsftpd-3.0.x

Note: If running an amd64 kernel, you will need to add the following to your /etc/vsftpd/vsftpd.conf:

seccomp_sandbox=NO

If the above change is not added, the following error may occur on the client side: Fatal error: 500 OOPS: priv_sock_get_cmd For further information, refer to https://bugzilla.redhat.com/show_bug.cgi?id=845980.

Anonymous read/write access

Warning
dangerous, do not do this unless behind a firewall and kept intranet only
root # chown ftp /home/ftp
File/etc/vsftpd/vsftpd.conf

listen=YES
local_enable=NO
anonymous_enable=YES
anon_upload_enable=YES
write_enable=YES
anon_mkdir_write_enable=YES
anon_root=/home/ftp

OpenRC

root # rc-update add vsftpd default
root #
/etc/init.d/vsftpd start

systemd

root # systemctl enable vsftpd
root #
systemctl start vsftpd