Can't upload with ProFTPD

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Can't upload with ProFTPD

Postby Nick Taylor » 03. February 2004 17:24

Hello,
Sorry to bother you again, but I cannot upload with ProFTPD.
I get this error message in the FTP client:

Command: STOR Bookmarks.htm
Response: 550 Bookmarks.htm: Permission denied
Error: Upload failed

I am using the mysql authentication for ProFTPD, is it why it doesn't work?

Thanks for your help.

Nick Taylor
Nick Taylor
 
Posts: 36
Joined: 27. January 2004 14:22
Location: Oxford

Postby Oswald » 03. February 2004 18:59

Hi Nick!

You - or more exactly the user login you're using - has not the permissions to write Bookmarks.htm.

Get a root shell. Go into the directory containing Bookmarks.htm and call the following command:

chmod a+w Bookmarks.htm

Now everyone is allowed to write this file.

Greetings
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
Operating System: Linux

Postby Nick Taylor » 03. February 2004 19:07

Sorry :oops: but i'm afraid i do not understand.
The thing is, I cannot upload anything to to Linux machine (to teh ProFTPD server machine) from any other PC. It applies for any file. See example below:
Command: STOR WS_FTP.LOG
Response: 550 WS_FTP.LOG: Permission denied
Error: Upload failed


Any idea?

thanks
Nick Taylor
 
Posts: 36
Joined: 27. January 2004 14:22
Location: Oxford

Postby Nick Taylor » 04. February 2004 15:55

Right, Kai has found the solution, and told me how to sort out the problem.
Basically, if your using MySQL to authenticate ProFTPD users (as described and explained by Stephen Khoo - http://www.khoosys.net/single.htm?ipg=848), you also have to change file/folder owners and groups by using the chown command.
For instance, if you want to give access to /opt/lampp/htdocs, you have to type:
chown ftpuser /opt/lampp/htdocs
ftpuser being the user defined in MySQL (see Stephen Khoo's thread at http://www.khoosys.net/single.htm?ipg=848)
Enjoy[/b]
Nick Taylor
 
Posts: 36
Joined: 27. January 2004 14:22
Location: Oxford


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 32 guests