# config file /etc/vsftpd.conf
#
#http://howto.gumph.org/content/setup-virtual-users-and-directories-in-vsftpd/

ftpd_banner=DP FTP Server
nopriv_user=ftp
#listen=YES
#anonymous_enable=NO
#local_enable=YES
#virtual_use_local_privs=YES
#write_enable=YES
#connect_from_port_20=YES
#secure_chroot_dir=/home/share/vsftpd
#pam_service_name=vsftpd
#guest_enable=YES
#user_sub_token=$USER
#local_root=/home/share/external
#local_umask=002
#chroot_local_user=YES
#hide_ids=YES

## Run standalone?  vsftpd can run either from an inetd or as a standalone
## daemon started from an initscript.
listen=YES
tcp_wrappers=NO
connect_from_port_20=YES
accept_timeout=300
pasv_enable=YES
pasv_min_port=11000
pasv_max_port=11500
#
##maximum connections
max_clients=60
max_per_ip=15
max_login_fails=3
delay_failed_login=15
delay_successful_login=2
#
## acces priviliges
local_umask=002
#anonymous_enable=NO
local_enable=YES
write_enable=NO
#
#
## user authorisation
anonymous_enable=NO
#userlist_enable=NO
#userlist_file=/etc/vsftpd/users
pam_service_name=vsftpd
guest_enable=YES
user_sub_token=$USER
##user_sub_token=$USER
virtual_use_local_privs=YES
local_root=/home/share/ftp
secure_chroot_dir=/home/share/vsftpd/chroot
user_config_dir=/home/share/vsftpd/users
chroot_local_user=YES
hide_ids=YES

#chroot_list_enable=YES
#chroot_list_file=/etc/vsftpd/chroot_list

#
##logging
#dual_log_enable=YES
#syslog_enable
xferlog_enable=YES
xferlog_std_format=YES
#xferlog_file=/home/share/vsftpd/log/$USER.log
#log_ftp_protocol
vsftpd_log_file=/var/log/vsftpd.log
xferlog_file=/home/share/vsftpd/log/xferlog
#
