diff --git a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/vsftpd/conf/vsftpd.conf b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/vsftpd/conf/vsftpd.conf index e0d7274663..dd93c28fe5 100644 --- a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/vsftpd/conf/vsftpd.conf +++ b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/vsftpd/conf/vsftpd.conf @@ -7,7 +7,6 @@ local_umask=022 dirmessage_enable=YES use_localtime=YES xferlog_enable=YES -connect_from_port_20=YES chroot_local_user=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd @@ -15,9 +14,12 @@ force_dot_files=YES pasv_enable=YES pasv_min_port=40000 pasv_max_port=50000 -pasv_addr_resolve=YES pasv_address=jckservices.adoptium.net +pasv_addr_resolve=YES user_sub_token=$USER local_root=/home/$USER/ftp allow_writeable_chroot=YES port_enable=YES +connect_from_port_20=YES +ftp_data_port=20 +seccomp_sandbox=NO diff --git a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/vsftpd/tasks/main.yml b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/vsftpd/tasks/main.yml index e5f684edbf..78493cad2d 100644 --- a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/vsftpd/tasks/main.yml +++ b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/vsftpd/tasks/main.yml @@ -27,7 +27,7 @@ - name: Create file for FTP access copy: - content: "This is a line of text in a file" + content: "" dest: "/home/{{ jckftp_Username }}/ftp/filename.txt" force: no owner: "{{ jckftp_Username }}"