I'm rather new to Ubuntu and therefore vsftp.
I've setup the ftp server and I have several folders. When I connect, I can do so without any issues. However, if I try to access one particular folder that has jpegs stored within it, I get:
500 OOPS: priv_sock_get_cmd
failed to get directory listing. I've added the seccomp_sandbox=NO option to the end of my config file and restarted the service, but it didn't help.
I did delete the folder and recreated it - which worked for a short time and now I'm back in the same boat: I can't open that folder (get a directory listing)
Ubuntu Server version: 14.04.3 LTS, vsftpd version is 3.0.2
An ls -al of the directory /media/ftpdata/sbp/09scandocs gives a full list of the 100k files I have in there, all showing:
-rw------ 1 user1 user1 [file name] 5 1 Answer
Easy-peasy: You've got a mismatch in ownership: the files should be owned by user root and group ftp:
cd /media/
sudo chown --recursive root:ftp ftpdataafter performing the above and you want to copy files to/from /media/ftproot, just use sudo cp.
Alternatively, you could define a special ftp user and have that one own all files and run the daemon, or have multiple users each with their own directories, but those would be new questions all by themselves!
1