FedoraThis forum is for the discussion of the Fedora Project.
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.
Iam able to connect and see the folder contents as a user ,
but iam not able to upload anything as any user .
I am getting a 'Creation Failed ' Message .
Please advise .
I am logging in to a remote server where i also have root access .
As a user i am able to ftp the server and see the directories ,but
not able to upload anything .
Command: SYST
Response: 215 UNIX Type: L8
Status: Connected
Status: Starting upload of E:\worksnew\Aug12\mnrao\a_logo2.gif
Command: CWD /public_html/
Response: 250 Directory successfully changed.
Command: PWD
Response: 257 "/public_html"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PORT 219,65,160,18,16,193
Response: 200 PORT command successful. Consider using PASV.
Command: STOR a_logo2.gif
Response: 553 Could not create file.
Error: Upload failed
Status: Retrieving directory listing...
Command: PORT 219,65,160,18,16,195
Response: 200 PORT command successful. Consider using PASV.
Command: TYPE A
Response: 200 Switching to ASCII mode.
Command: LIST
Response: 150 Here comes the directory listing.
Response: 226 Directory send OK.
Status: Directory listing successful
Command: TYPE A
Response: 200 Switching to ASCII mode.
Originally posted by swiftsage I am logging in to a remote server where i also have root access .
As a user i am able to ftp the server and see the directories ,but
not able to upload anything .
Command: SYST
Response: 215 UNIX Type: L8
Status: Connected
Status: Starting upload of E:\worksnew\Aug12\mnrao\a_logo2.gif
Command: CWD /public_html/
Response: 250 Directory successfully changed.
Command: PWD
Response: 257 "/public_html"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PORT 219,65,160,18,16,193
Response: 200 PORT command successful. Consider using PASV.
Command: STOR a_logo2.gif
Response: 553 Could not create file.
Error: Upload failed
you may have root access on the unix box but when you start the ftp session is it as root or non-root because it looks like you have permission problems with /public_html. Another problem might be that the ftp server on the unix side may be set up to let only certain users access the /public_html area and it doesn't care whether your root or not
FTP code 553 suggests your filename has illegal characters in it, something that's not acceptable to your remote server's configuration, perhaps.
Although your filename a_logo2.gif seems like it should be okay, have you tried renaming it, say without the underscore or number, to see if it uploads? What other file names have you tried uploading?
Originally posted by swiftsage Can you kindly suggest me where i can change these permissions ?
What flavour unix is the ftp server box?
In /etc there may be files of the form ftp_accept or ftp_deny or ftp_something check those out and see whats in them.
Other wise try linux-goot's suggestion and change the filename , the other possibility is that the STOR command is trying to create Windows paths on the Unix box perhaps try cd to the home directory of a_logo2.gif and ftp from there.
Another idea might be to use the ftp comman PUT and see if that works
Thank you ,Dommy .Its working now .
Its to do with Directory Ownership .I created public_html as Root .
So as a user i had no permission to it .I created a new directory
and copied contents of public_html there .
An alternative would be to change the permissions on public_html to allow any one to access it , something like chmod +777 public_html should give rwx access to everyone
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.