I’ve been trying to set up a FTP server with anonymous logins. When I try to open my ftp server in my browser it shows no directories or files in the directory. I have configured the vsftpd.conf file to my ftp root directory which is /srv/ftp. I am successfully able to login according to the vsftpd.log
I only followed some instruction from addictive tips but I’m not able to use FTP from within local host.
I only get:
Connecting to 127.0.0.1:21…
Status: Connection established, waiting for welcome message…
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing…
Response: 257 “/” is the current directory
Command: TYPE I
Response: 200 Switching to Binary mode.
Response: 227 Entering Passive Mode (127,0,0,1,68,133).
Response: 500 OOPS: priv_sock_get_cmd
Error: Failed to retrieve directory listing
Status: Connection closed by server
Hi, i had this issue on 2 machines. seems to be a bug in vsftpd.
The solution i found was to add the below to the end of /etc/vsftpd.conf:
I would link to the site where i found this but for some reason i can’t add links here right now.
I googled “500 OOPS: priv_sock_get_cmd” and the answer was on a site called liquidweb .com about 4 results down.
hope this helps anyone with the same issue in the future.