VSFTPD Error 550 I can upload, but Cannot download, any ideas?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
VSFTPD Error 550 I can upload, but Cannot download, any ideas?
Ok so this is my config, is something wrong with it?
I have created the anonymous folder and gave it the proper permissions, yet I can only upload and create files, if I try to download I get Error Code 550 cannot change directory. I would also like to point out the local accounts are fully functional, and my problem is with anonymous downloaders only.
Ok FAIL, I can now down files of zero file size. Which the files are NOT zero file size, thisi is driving me nuts!
Where is the fail in this conf???
I want local users confined to theri own private directories and have anonymous ftp enabled as well, but so far this is turning into a fiesta of failure.
Are you running a firewall? Is the PASV mode port range (ports 50000-60000) allowed through it? I've found that a lot of problems like the ones you described are caused by problems with passive mode.
Yeah Im natted behind a Mikrotik firewall but port 21 is allowed. And fully natted.
Plus the testing im doing is being done at a local level so the firewall is not an issue.
Should I disabled this passiv mode and how so?
FAILURE #1 PORTS 5000-6000
Waiting to retry...
Status: Connecting to 10.10.10.2:6000...
Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server".
Error: Could not connect to server
-------------------------------------------------------------------------------------
FAILURE #2 PORT 21
Status: Connecting to 10.10.10.2:21...
Status: Connection established, waiting for welcome message...
Response: 500 OOPS: vsftpd: security: 'one_process_model' is anonymous only
Error: Critical error
Error: Could not connect to server
Ok the above errors I fixed by Setting
one_process_model=NO
And I complety removed these two lines as I have no intention on using those absurd ports
pasv_min_port=50000
pasv_max_port=60000
Now heres the problem, I can connect, and I can see the files, but I cannt download
Command: PASS **************
Response: 230 Login successful.
Command: OPTS UTF8 ON
Response: 200 Always in UTF8 mode.
Status: Connected
Status: Starting download of /anonymous/Perl/Exploit.Perl.BadBlue.zip
Command: CWD /anonymous/Perl
Response: 250 Directory successfully changed.
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 227 Entering Passive Mode (10,10,10,2,91,34)
Command: RETR Exploit.Perl.BadBlue.zip
Response: 550 Failed to open file.
Error: Critical error
Someone plz help or ill be at this for days on end furthering my downward spiral into anti-socialism
Last edited by MadAtUbuntu; 12-25-2009 at 05:02 PM.
Reason: some bugs fixed with edits
It's 50000-60000, not 5000-6000. It's likely that you have to use passive FTP or else nothing will work, at least not unless the client has no firewall or NAT router in between it and the server. You need to understand how FTP actually works, there are two ports used, one for control/commands and the other for data. I wrote up an explanation awhile back in this thread (post #5 IIRC). Basically if your server is behind a NAT firewall, you need to make sure that the passive mode ports are also forwarded through the router to the server. You might want to use a smaller range than 10K ports. Unless you have many, many clients, a few hundred should be sufficient.
I ran hostname -I and tried each of the IP addresses as pasv_address one at a time
pasv_min_port=59000
pasv_max_port=60000
I ran firewall-config and under the public zone ...
Ports: I added 59000-60000 tcp
Services: I checked the box for ftp
I'm on 3.17.6-200.fc20.x86_64 GNU/Linux
This is the result I get:
Code:
Name (my.i.p.addr:me): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
227 Entering Passive Mode (0,0,0,0,233,159).
150 Here comes the directory listing.
-rwxr-xr-x 1 1000 1000 29 Dec 16 21:26 tmp
226 Directory send OK.
ftp> get tmp
local: tmp remote: tmp
227 Entering Passive Mode (0,0,0,0,232,91).
550 Failed to open file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.