LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FTP '553 Could not create file' error (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-553-could-not-create-file-error-822104/)

Nasser Domingo 07-25-2010 05:47 PM

FTP '553 Could not create file' error
 
Hi there, could anyone please assist me.
I have created a virtual server using VMware and attempted to setup the FTP side on the server using vsftpd.

Searching this site, I found http://www.linuxquestions.org/questi...e-file-390569/

which states that there is a file with the same name in the directory.
My servers directories are however empty as below.

[root@gets-dev-form2 upload]# ls -all
total 16
drwxr-xr-x 2 root root 4096 Jul 23 21:10 .
drwxr-xr-x 4 root root 4096 Jul 23 21:10 ..
[root@gets-dev-form2 upload]#

Using FileZilla to FTP and upload files to the server, I get the error "553 Could not create file"

Could you please help?

Im not sure if I gave enough information, if not could I ask what information you require and I will be happy to provide it.

Thanking you in advance.

Nasser Domingo

acid_kewpie 07-26-2010 02:22 AM

well the directory there is clearly owned by, and only writeable by, root. As such you're only going to be able to upload a file if you log in as root. You need to actually create a suitable upload directory, which at the very least would be world writable. There is a lot more subtlety to it than that in a fully configured system, but that's the starting point. Generally ftp would be running as a service account, and the upload directory would be owned by them, or the "nobody" user, and then it'd be set with rights of 777 to allow everyone to put and get files.

Nasser Domingo 08-02-2010 07:04 AM

Ahh, thanks.

I did want the FTP to be private (ie: only root access)
What I did following your advice was, I changed the /usr/home | grep upload directory to upload:upload
This seemed to have resolved the issue.

A thousand thank you's :)


All times are GMT -5. The time now is 08:57 AM.