FTP server say : 500 oops child died

Hi.

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

What can i do to solve this ?

Read the wiki

Perhaps you should look at passive ftp if your system is behind a firewall?

You should really get your permissions straight

the user must be member of ftp group

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.

Sorry, it’s first time i create ftp server :joy:

The easiest method is to simply login using the remote username and password.

vsftpd will redirect you to your home.

vsftpd is an acronym for Very Secure Ftp Daemon.

Configuring it to allow any and anything defeats the purpose.

Search engines would have given you the answer [make anonymous writable ftp using vsftpd]

Create a user on the remote Manjaro Linux system advertising the vsftpd service

useradd -MU ftpsecure

Change owner group on /var/ftp

chgrp ftpsecure /var/ftp

Create an upload folder in your /var/ftp

mkdir -p /var/ftp/upload

Change permissions on the upload folder

chmod go+rw /var/ftp/upload

Modify the vsftpd.conf

 # cat /etc/vsftpd.conf
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_root=/var/ftp
anon_upload_enable=YES
anon_world_readable_only=NO
anonymous_enable=YES
ascii_upload_enable=YES
connect_from_port_20=YES
dirmessage_enable=YES
listen=YES
local_enable=YES
nopriv_user=ftpsecure
ssl_enable=NO
syslog_enable=YES
write_enable=YES

Stop and start the vsftpd service

systemctl stop vsftpd
systemctl start vsftpd

vsftpd blocks writing to the chroot folder - but no the subfolder - so you can write anonymously to the upload folder but not the parent.

Thanks a lot it’s work ! :slightly_smiling_face:

I was totally wrong concerning the permissions…

Thanks man :wink:

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.