500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/usr/share/empty

Getting error in this please anyone help me with it.

create that directory and then run the ftp.

Add those directories the way it wants.

where to create this directory and what should be its contents ???

just create empty directory at given location.

created directories under crio-user as usr/share/empty .Still it is not working

secure_chroot_dir says you just need a empty directory with the name “empty”, you can make it anywhere, its better to make in the workspace as in the files there doesn’t get reset after closing the vm, and also give the directory path in the vsftpd_v1.conf with the value secure_chroot_dir=your_path_goes_here.

1 Like

Created a directory in workspace named as empty and wrote the directory path in conf file as secure_chroot_dir

yeah same error for me too…

you can give the directory like /home/crio-user/workspace/empty, and make sure that there are no space before and after equal.

just search for this question in forum and you will get answer
https://forum.crio.do/t/500-oops-vsftpd-not-found-directory-given-in-secure-chroot-dir-usr-share-empty/4552/29?u=senti143

Try to create a dir with the same name and add a secure_chroot variable in conf with the file path as value.