Error 550

demonhale's picture

He has: 3,278 posts

Joined: May 2005

Any of you experienced this error? I am able to resolve this before using my FTP client to access folders... Now it seems the problem is on both the FTP program and site Ftp.

Scenario:
created a folder named "images" ... it contains thumbnail images that views fine in browsers... I was planning to set permission to the "images" folder when I was warned
"550 Could not change perms on /public_html/images: Bad file descriptor"

So I decided to delete it instead, I get
"550 Could not delete /public_html/images: Permission denied"

Ok Any help on this? How should I atleast delete this folder?

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

Do you have file access other than FTP, SSH or Cpanel maybe? If so try deleting/chmoding the file there.

demonhale's picture

He has: 3,278 posts

Joined: May 2005

online ftp as i said, to be more specific using cpanel... any other suggestions?

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

If you create a file using Cpanel, the file owner/group will be whoever the Apache process is running under. Usually it runs under nobody:nobody or www:www. If you create a folder using Cpanel, then the folder would have user=nobody, group=nobody and you wouldn't be able to change permissions on it since you aren't that user or in that group. To change permissions, you would have to have a su or root to do so.

That is different from using a ftp client. With a ftp client, you login with your username and so files created by you are owned by you.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

demonhale's picture

He has: 3,278 posts

Joined: May 2005

I created those files using the ftp client, although more specifically it was auto created by a php scripting i experimented on using the GD library... although it was successful, the result was this problem later on... it doesnt bother me that much, but its an annoyance not being able to delet those files/folders...

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Creating it using the FTP client vs a PHP script are two totally different things. If you created it with an FTP client, the owner should be the login you used. If you created it with a PHP script, the owner is likely Apache, assuming you're using Apache.

If you created it with a script, just write a script that deletes it. I've had to do that before.

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

And if you want to solve it on an ongoing basis, just have your script chown the file after creating it.

demonhale's picture

He has: 3,278 posts

Joined: May 2005

I mean I used the ftp to upload the script and create the folders... I used the browser to run the script, that populates the folder, maybe thats why its thinking I did not create it... Although I also tried writing a delete script for the files, it wouldnt work for the same reasons, it just flickers at me and the filese and folders are still there... What else do you have in mind? Maybe after I exhaust all the help i can get, ill ask my host to delete it for me... If they can... Thanks for the help so far....

demonhale's picture

He has: 3,278 posts

Joined: May 2005

Also I retried the original script at a different folder, it works fine, and I can delete the files it created,

I cant figure why it happened on my first try...
maybe its one of those unfinished files, or I was having a bad day...

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

I'd go with the bad day answer. Wink

Seriously, if it's working fine now, I would just have your host delete it. No reason to pull your hair out if there are no ongoing problems.

demonhale's picture

He has: 3,278 posts

Joined: May 2005

bad day indeed, I was hoping I could try a route where i will not talk to the tired voice of the support desk of my host... anyways, if anybody out there has some ideas for this, feel free to write it down here, and ill try if it works, so that it can be used by others as a reference in the future...

(since i tried searching for a solution, and no major site has answered the problem directly...)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.