Can't upload with vsftp

Hello all.

I’ve just configured the vsftp server with yast and it is up’n’runnin’. Can login, but no matter how much I try, I just don’t seem to be able to make it accept uploads.

The config is the following:

write_enable=YES

dirmessage_enable=YES

nopriv_user=ftpsecure

local_enable=YES

Default umask for local users is 077. You may wish to change this to 022,

if your users expect that (022 is used by most other ftpd’s)

#local_umask=022

chroot_local_user=YES

local_root=/srv/ftp/

anonymous_enable=YES

Default umask for anonymus users is 077. You may wish to change this to 022,

if your users expect that (022 is used by most other ftpd’s)

#anon_umask=022

anon_world_readable_only=YES
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_root=/srv/ftp/pub/

syslog_enable=NO
log_ftp_protocol=NO

connect_from_port_20=YES

idle_session_timeout=900

pasv_enable=YES

pam_service_name=vsftpd

listen=YES

ssl_enable=NO

pasv_min_port=30000
pasv_max_port=30100

max_clients=10
max_per_ip=3

If I try to upload with a local user I get the “553 could no create file” error.
If I try to create a folder I get the “550 Create directory operation failed” error.

What should I do?

P.S.: the /srv/ftp folder is owned by root:root

Ok, I figured it out lol!

It had to do precisely with the owner of the /srv/ftp folder.
I changed it’s owner to the ftp user and it works.

Best regards,
Jorge