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
|
||||
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 "$@"
|
||||
|
|
|
@ -6,8 +6,8 @@ session_support=NO
|
|||
|
||||
# access
|
||||
anonymous_enable=NO
|
||||
local_enable=YES
|
||||
ftpd_banner=FTP Server
|
||||
local_enable=YES
|
||||
|
||||
# local user
|
||||
allow_writeable_chroot=YES
|
||||
|
@ -17,22 +17,31 @@ local_umask=022
|
|||
passwd_chroot_enable=YES
|
||||
|
||||
# directory
|
||||
dirlist_enable=YES
|
||||
dirmessage_enable=NO
|
||||
hide_ids=YES
|
||||
hide_file=NO
|
||||
|
||||
# file transfer
|
||||
write_enable=YES
|
||||
|
||||
# logging
|
||||
dual_log_enable=YES
|
||||
log_ftp_protocol=YES
|
||||
xferlog_enable=YES
|
||||
|
||||
# network
|
||||
connect_from_port_20=YES
|
||||
ftp_data_port=21
|
||||
max_clients=0
|
||||
max_per_ip=0
|
||||
pasv_enable=YES
|
||||
pasv_address=0.0.0.0
|
||||
pasv_addr_resolve=YES
|
||||
pasv_promiscuous=YES
|
||||
pasv_enable=YES
|
||||
pasv_max_port=40009
|
||||
pasv_min_port=40000
|
||||
port_enable=YES
|
||||
ftp_data_port=20
|
||||
connect_from_port_20=YES
|
||||
|
||||
# tweaks
|
||||
seccomp_sandbox=NO
|
||||
|
|
Loading…
Reference in a new issue