parent
38f730875e
commit
72cceeacb7
2 changed files with 18 additions and 4 deletions
|
@ -17,4 +17,9 @@ mkdir -p /home/$FTP_USER
|
||||||
chown -R $FTP_USER:$FTP_USER /home/$FTP_USER
|
chown -R $FTP_USER:$FTP_USER /home/$FTP_USER
|
||||||
echo "$FTP_USER:$FTP_PASS" | /usr/sbin/chpasswd
|
echo "$FTP_USER:$FTP_PASS" | /usr/sbin/chpasswd
|
||||||
|
|
||||||
|
touch /var/log/vsftpd.log
|
||||||
|
tail -f /var/log/vsftpd.log | tee /dev/stdout &
|
||||||
|
touch /var/log/xferlog
|
||||||
|
tail -f /var/log/xferlog | tee /dev/stdout &
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
|
@ -6,8 +6,8 @@ session_support=NO
|
||||||
|
|
||||||
# access
|
# access
|
||||||
anonymous_enable=NO
|
anonymous_enable=NO
|
||||||
local_enable=YES
|
|
||||||
ftpd_banner=FTP Server
|
ftpd_banner=FTP Server
|
||||||
|
local_enable=YES
|
||||||
|
|
||||||
# local user
|
# local user
|
||||||
allow_writeable_chroot=YES
|
allow_writeable_chroot=YES
|
||||||
|
@ -17,22 +17,31 @@ local_umask=022
|
||||||
passwd_chroot_enable=YES
|
passwd_chroot_enable=YES
|
||||||
|
|
||||||
# directory
|
# directory
|
||||||
|
dirlist_enable=YES
|
||||||
dirmessage_enable=NO
|
dirmessage_enable=NO
|
||||||
hide_ids=YES
|
hide_ids=YES
|
||||||
|
hide_file=NO
|
||||||
|
|
||||||
# file transfer
|
# file transfer
|
||||||
write_enable=YES
|
write_enable=YES
|
||||||
|
|
||||||
|
# logging
|
||||||
|
dual_log_enable=YES
|
||||||
|
log_ftp_protocol=YES
|
||||||
|
xferlog_enable=YES
|
||||||
|
|
||||||
# network
|
# network
|
||||||
|
connect_from_port_20=YES
|
||||||
|
ftp_data_port=21
|
||||||
max_clients=0
|
max_clients=0
|
||||||
max_per_ip=0
|
max_per_ip=0
|
||||||
pasv_enable=YES
|
|
||||||
pasv_address=0.0.0.0
|
pasv_address=0.0.0.0
|
||||||
|
pasv_addr_resolve=YES
|
||||||
|
pasv_promiscuous=YES
|
||||||
|
pasv_enable=YES
|
||||||
pasv_max_port=40009
|
pasv_max_port=40009
|
||||||
pasv_min_port=40000
|
pasv_min_port=40000
|
||||||
port_enable=YES
|
port_enable=YES
|
||||||
ftp_data_port=20
|
|
||||||
connect_from_port_20=YES
|
|
||||||
|
|
||||||
# tweaks
|
# tweaks
|
||||||
seccomp_sandbox=NO
|
seccomp_sandbox=NO
|
||||||
|
|
Loading…
Reference in a new issue