Ftp file transfer unsuccessful

Hi, i am at last milestone of module 4, but my ftp file transfer shows an error now

ftp> put sample.txt
local: sample.txt remote: sample.txt
200 PORT command successful. Consider using PASV.
553 Could not create file.

i have given root priviledges to vsftpd.conf file. I don’t know what got wrong here.

I wrote a script to do all the things like making ftp client and server and usr/share/empty directories. And also to give root privileges to vsftpd.conf file so i won’t have to do it again and again. The script changed the directory permissions of client and server to root which was giving this error. Changing the directory permissions from root to crio-user will solve this issue.