I now this is a known issue but i tried many things before post.I want to set up ftp server using vftpd in anobymous mode.So it doesn’t ask for user or password (just typing : ftp).The ftp server is on Manjaro and i want to upload somes files from a windows10 computer wich is on my local network.When connecting there no error and i can get the files on my server from the windows machine.
The problem is i can’t upload files from my windows machine to the ftp server.I tried that
-1 assign ftp:ftp to the ftp root folder
-2 changing rules to make the directory writable.
-3 trying to modify my vsftpd.conf
Here is my config. My root ftp folder is /var/ftp
ls -l
total 8
dr-xr-xrwx 2 root ftp 4096 11 avril 11:17 Files
-rwxr-xr-x 1 root ftp 80 10 avril 14:14 welcome.txt
My vsftp.conf
anonymous_enable=YES
local_enable=YES
write_enable=YES
file_open_mode=0777
local_umask=022
anon_world_readable_only=NO
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=koala
xferlog_std_format=YES
chroot_local_user=YES
allow_writeable_chroot=YES
listen=NO
listen_ipv6=YES
# Set own PAM service name to detect authentication settings specified
# for vsftpd by the system package.
pam_service_name=vsftpd
#
# Point users at the directory we created earlier.
anon_root=/var/ftp/
#
# Stop prompting for a password on the command line.
no_anon_password=YES
#
# Show the user and group as ftp:ftp, regardless of the owner.
hide_ids=YES
#
# Limit the range of ports that can be used for passive FTP
pasv_min_port=40000
pasv_max_port=50000
I have changed permissions, is this good like that ?
ls -la /home/koala/ftp
total 20
dr-xr-xr-x 3 root nobody 4096 11 avril 13:47 .
drwx------ 30 koala koala 12288 11 avril 14:08 ..
drwxrwxrwx 2 koala ftp 4096 11 avril 14:42 files
ls -la /home/koala/ftp/files
total 12
drwxrwxrwx 2 koala ftp 4096 11 avril 14:42 .
dr-xr-xr-x 3 root nobody 4096 11 avril 13:47 ..
-rw-rw-rw- 1 root ftp 17 11 avril 13:49 test.txt
Now i have another error when i try to send my file
ftp 192.168.1.15
Connected to 192.168.1.15.
220 (vsFTPd 3.0.5)
Name (192.168.1.15:koala): ftp
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd files
250 Directory successfully changed.
ftp> put /home/koala/cmd /home/koala/ftp/files/cmd
200 PORT command successful. Consider using PASV.
553 Could not create file.