Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: vsftpd breaks connection on directory listing (Read 2144 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

vsftpd breaks connection on directory listing

I needed to grant upload access to a server, so I slapped vsftpd on it and did the configuring of virtual users, directories and such. It's able to recieve connections now, but for whatever reason any attempt to list a directory ends with a disconnection. I even tried FTPing from the same machine the server runs on. This is what I get:
Quote
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/" is the current directory
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
421 Service not available, remote server has closed connection
I already checked for dirlist_enable=yes. I've read this issue may be caused by firewalls, but since I'm connecting from the same machine, this surely can't be the case here. I even installed vsftpd on my home server with default config that allows anonymous login and it has exactly the same issue. Does anybody have a clue?

Re: vsftpd breaks connection on directory listing

Reply #1
Just installed ubuntu server in a virtual box. Got vsftpd, only enabled anonymous login in default config. Directory listing works fine. Possibly broken package in Artix?

Re: vsftpd breaks connection on directory listing

Reply #2
Please, try installing community/vsftpd (from Arch). If that works, then the breakage is in galaxy/vsftpd.

Re: vsftpd breaks connection on directory listing

Reply #3
Tried with community/vsftpd. Same issue.

Re: vsftpd breaks connection on directory listing

Reply #4
Just tried fresh Arch Linux in a virtual box; vsftpd with default configuration that allows anonymous login. It's also not working, although the error messages differ a bit:
Quote
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/" is the current directory
ftp> ls
200 PORT command successful. Consider usung PASV.
150 Here comes the directory listing.
500 OOPS: priv_sock_get_cmd
ftp> pwd
421 Service not available, remote server has closed connection

 

Re: vsftpd breaks connection on directory listing

Reply #5
I can confirm that adding this:
Code: [Select]
seccomp_sandbox=NO
into the vsftpd.conf file fixes this issue on both Arch and Artix.

Sources here and here.