LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   550 Failed to open file (https://www.linuxquestions.org/questions/linux-newbie-8/550-failed-to-open-file-4175506844/)

je_syd 06-03-2014 12:29 AM

550 Failed to open file
 
I am trying to download NASM from nasm.us
I can successfully log in at anonymous/anonymous
I can change the directory to /pub/nasm/releasebuilds/2.11.05 and successfully list the directory entries.

When I issue the command:

ftp> get nasm-2.11.05.tar.gz
I get the error message: 550 Failed to open file

I was trying to download the file to the pwd which is /usr/local/src where I am logged in as root.

Assuming this 550 error to be a file permission error in the pwd I ran the following command from the parent directory to ./src :
>chmod 777 /usr/local/src and got the following permissions:

drwsrwsrwt 3 root staff 4096 Jun 4 10:51 src

But that makes no difference and I still get the 550 error message.

I am logged into a Linux Debian v7.5 distribution and using the ftp progam.

So what else should I do???

pan64 06-03-2014 01:21 AM

wget http://www.nasm.us/pub/nasm/releaseb...2.11.05.tar.gz
works for me perfectly

Doc CPU 06-03-2014 01:25 AM

Hi there,

Quote:

Originally Posted by je_syd (Post 5181326)
ftp> get nasm-2.11.05.tar.gz
I get the error message: 550 Failed to open file

that's an error or status code returned by the FTP server. It indicates a technical problem with the server side file system.

Quote:

Originally Posted by je_syd (Post 5181326)
Assuming this 550 error to be a file permission error in the pwd I ran the following command from the parent directory to ./src :
>chmod 777 /usr/local/src and got the following permissions:

drwsrwsrwt 3 root staff 4096 Jun 4 10:51 src

You may be on the right trail assuming a permission problem - but it's not about permissions on your local machine where you're going to put the downloaded file; instead, it's likely to be a permission problem on the server side. Either a misconfiguration, or the file's ownership and access rights are set deliberately so that the ftp process can't access the file. However, then it would be a lot smarter not to put the file there in the first place.

But don't forget that a permission issue isn't the only possibility. A 550 status code is fairly generic in FTP and merely indicates a file-system related problem that probably won't sort itself out on its own. Trying to access a non-existent file yields the same status code (unlike HTTP, where there is a dedicated status code for "Not Found", the 404). So before you go on, double-check that you don't simply have a typo.

Quote:

Originally Posted by je_syd (Post 5181326)
So what else should I do???

Contact the server administrator or the people who run the FTP service. Whatever the actual problem is, it seems to be on their side.

[X] Doc CPU


All times are GMT -5. The time now is 03:23 AM.