Author Topic: FTP - Files that are now owned by you, and unable to delete?  (Read 804 times) Share this topic on Del.icio.usShare this topic on DiggShare this topic on FacebookShare this topic on FurlShare this topic on GoogleShare this topic on LiveShare this topic on MagnoliaShare this topic on MySpaceShare this topic on NewsvineShare this topic on RedditShare this topic on SlashdotShare this topic on SpurlShare this topic on SquidooShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

0 Members and 1 Guest are viewing this topic.

Offline Blue Mohican

  • Global Moderator
  • *
  • Posts: 1337
  • Topics: 9
  • ¤172
  • :D
    • Avatar Prime
FTP - Files that are now owned by you, and unable to delete?
« on: December 07, 2009, 09:49:12 PM »
(11:44:51 PM) colin: have there ever been files that you cant delete? Like they arent owned by you in FTP and you cant change the ownership?
(11:44:59 PM) sunking: yes
(11:45:07 PM) sunking: i have a folder and a few files right now
(11:45:10 PM) sunking: lmao
(11:45:13 PM) sunking: "stats"
(11:45:17 PM) colin: is there any script that can change that?

^^

« Last Edit: December 07, 2009, 09:52:16 PM by shadow82x »
- Shadow82x
EOTS Global Moderator

Are you an Avatar Fan?

Online SunKing

  • Midas's Black Sheep
  • Administrator
  • Founder
  • Posts: 3942
  • Topics: 355
  • ¤1055
  • "Heavy on the Sledge."
    • Empire of the Sun
  • Awards: EOTSBBQ Attendee
Re: FTP - Files that are now owned by you, and unable to delete
« Reply #1 on: December 07, 2009, 09:55:07 PM »
There is a way to. It has something to do with changing the name of the file(s), creating new blank files with the same name, and then setting permissions and deleting the originals, then deleting the blank new files. I have had this happen to me twice, and in both cases the files that cannot be deleted had permissions of 000. Changing these permissions to 444 or higher (probably to anything other than 000) will allow them to be deleted. Though not an answer, I hope this information at least points you in the right direction.

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »


Offline ccbtimewiz

  • New Member
  • *
  • Posts: 59
  • Topics: 2
  • ¤51
    • Dream Portal
Re: FTP - Files that are now owned by you, and unable to delete?
« Reply #2 on: December 07, 2009, 10:01:42 PM »
Shared hosting: Contact you host and ask to run a chown on your directory as the files were created by a user outside of your permission scope.

VPS or higher: Run chmod through SSH. The syntax for chown is:

Code: [Select]
chown [-R] [[user]][:group] target1 [[target2 ..]]


Offline stikkki

  • Theme Machine
  • Global Moderator
  • *
  • Posts: 421
  • Topics: 75
  • ¤111
  • im just the idiot the pc employs 2 click the mouse
    • eotsdzine smf custom themes
Re: FTP - Files that are now owned by you, and unable to delete?
« Reply #3 on: December 08, 2009, 05:20:00 AM »
i get this sometimes, especially if i create a new copy of curve/core theme thru admin panel, where i have no permissions and i just message my host and he resets the permissions so im the "owner" instead of 000000 being the owner


Offline Link

  • New Member
  • *
  • Posts: 41
  • Topics: 6
  • ¤59
  • Hyrule's Defender
    • The Ninja's Hideout
Re: FTP - Files that are now owned by you, and unable to delete?
« Reply #4 on: February 07, 2010, 04:44:27 PM »
Granted, it's for a gallery, but it always worked for me when I had shared hosting.
http://codex.gallery2.org/Downloads:Cleanup_Script
It will probably give you errors, but will change the owners regardless.

Obedire est vivere, Vivere est obedire


Online SunKing

  • Midas's Black Sheep
  • Administrator
  • Founder
  • Posts: 3942
  • Topics: 355
  • ¤1055
  • "Heavy on the Sledge."
    • Empire of the Sun
  • Awards: EOTSBBQ Attendee
Re: FTP - Files that are now owned by you, and unable to delete?
« Reply #5 on: February 07, 2010, 05:03:26 PM »
That's a very simple script and would probably work in any folder on any system. Going to try it out here shortly. I'll post the results.

Thanks Link!

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »