Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
VSFTPD.CONF for virtual users with write/read/delete permissions
###
# VSFTPD.CONF for virtual users with write/read/delete permissions
###
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=www-data
async_abor_enable=YES
ftpd_banner=Welcome to some FTP service.
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd-users
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
guest_enable=YES
guest_username=www-data
local_root=/var/www/nowhere
hide_ids=YES
user_config_dir=/etc/vsftpd.users.d
dirlist_enable=YES
nopriv_user=www-data
pasv_min_port=12000
pasv_max_port=12003
virtual_use_local_privs=YES
@strongwillow

This comment has been minimized.

Copy link

@strongwillow strongwillow commented Feb 20, 2013

Thank you. It worked!

@sharich

This comment has been minimized.

Copy link

@sharich sharich commented Dec 18, 2014

Thank you. Best config for ftp and web!

@DooVDe

This comment has been minimized.

Copy link

@DooVDe DooVDe commented Oct 19, 2015

Thank you. Really helped me.

@davedavidson84

This comment has been minimized.

Copy link

@davedavidson84 davedavidson84 commented Sep 30, 2016

GnuTLS error -15: An unexpected TLS packet was received.

@tvaliasek

This comment has been minimized.

Copy link

@tvaliasek tvaliasek commented Jan 9, 2017

If you are using SELinux don't forget to set proper context as mentioned in http://serverfault.com/questions/522602/vsftpd-vitual-users-selinux. If GnuTLS error -15 occures, try disabling ssl and you get better error messages in ftp client log.

@kurtitasarim

This comment has been minimized.

Copy link

@kurtitasarim kurtitasarim commented Jun 21, 2017

Thank you worked... my blog post shared..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment