Skip to content

Instantly share code, notes, and snippets.

@sharich
Forked from stas/vsftpd.conf
Last active August 29, 2015 14:11
Show Gist options
  • Save sharich/b08b4e784451d0efb3be to your computer and use it in GitHub Desktop.
Save sharich/b08b4e784451d0efb3be to your computer and use it in GitHub Desktop.
VSTPD enable write for both www-data and user
###############################################
######## vsftpd.conf unbuntu 14.04 LTS ########
###############################################
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/empty
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=/home/studio
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
listen=YES
pasv_enable=Yes
force_dot_files=YES
dirmessage_enable=YES
use_localtime=YES
#listen_ipv6=YES
#anon_upload_enable=YES
#anon_mkdir_write_enable=YES
#xferlog_file=/var/log/vsftpd.log
#xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
#deny_email_enable=YES
#banned_email_file=/etc/vsftpd.banned_emails
#chroot_list_enable below.
#chroot_list_enable=YES
#chroot_list_file=/etc/vsftpd.chroot_list
#ls_recurse_enable=YES
#allow_writeable_chroot=YES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment