Skip to content

Instantly share code, notes, and snippets.

@stas
Created February 26, 2010 14:46
Show Gist options
  • Save stas/315765 to your computer and use it in GitHub Desktop.
Save stas/315765 to your computer and use it in GitHub Desktop.
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
@quinncnl
Copy link

Thank you. It worked!

@sharich
Copy link

sharich commented Dec 18, 2014

Thank you. Best config for ftp and web!

@DooVDe
Copy link

DooVDe commented Oct 19, 2015

Thank you. Really helped me.

@davedavidson84
Copy link

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

@tvaliasek
Copy link

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.

@kurtulusoz
Copy link

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