vsftpd stopped working: LIST gives 500 Unknown command
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
vsftpd stopped working: LIST gives 500 Unknown command
Up to about 24 hours ago, it worked fine (I downloaded a few hundred gig from my server in the last few weeks). Then it stopped.
Now, connecting to it and changing directory works, but the LIST command returns "500 Unknown command".
I'm running vsftpd.i386 2.0.1-5.EL4.3
I don't think anything got changed when it stopped working, but obviously something did.
Permissions on the directory changed to are 775, the ones above are all 755. The directory changed to is owned by the user logging in to ftp. That directory contains further directories which are all 775. Everything is readable all the way down.
I used vsftpd for a website building camp last week. I got a bunch of "User cannot login" errors. Try restarting vsftpd. It took me a few hours of trouble shooting, and when I restarted vsftpd, it worked. I may have done something else, because after two hours of troubleshooting at 9 in the morning I was totally exhausted and really didn't care what I had done to fix it.
i had this problem 2. check your vsftpd.conf for the following line:
passive_disabled=yes
it gave the same error, and denied some users and some not.
the users denied used a client that MUST have passive connections.
but the server refuses that.
Passive FTP requires a connection on a port > 1024.
Your firewall (iptables) will indeed need to allow this.
However, if you don't want to open all ports > 1024 (which is a serious security hazard),
you can limit the port numbers vsftpd uses to a certain range.
Check out the pasv_min_port and pasv_max_port options (man vsftpd.conf).
If you set these options, you only need to open the given range of ports in iptables.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.