unable to delete files

unable to delete files

Posted by: palladian
Posted on: 2007-10-08 04:07:00

I'm trying to reset everything but I'm not able to delete some files. Here's what I get through webftp:


An error has occured

Unable to execute site command chmod 0777 /otelho.com/calendars. Note that the CHMOD command is only available on Unix FTP servers, not on Windows FTP servers.

Go back or Go to the login page

View technical details
Hide technical details

The error occured in file /usr/local/ndn/web/webftp/includes/filesystem.inc.php on line 270.

* function ftp_chmod2 (/usr/local/ndn/web/webftp/includes/filesystem.inc.php on line 304)
o argument 0: Resource id #25
o argument 1: /otelho.com
o argument 2: Array
o argument 3: 1
* function ftp_chmod2 (/usr/local/ndn/web/webftp/modules/chmod/chmod.inc.php on line 260)
o argument 0: Resource id #25
o argument 1: /
o argument 2: Array
o argument 3: 0
* function net2ftp_module_printBody (/usr/local/ndn/web/webftp/main.inc.php on line 321)
* function net2ftp (/usr/local/ndn/web/webftp/index.php on line 58)
o argument 0: printBody

when I try to delete the folder, here's what I get

* Processing directory /otelho.com
o Processing directory /otelho.com/calendars
Unable to delete the file .htaccess
Unable to delete the file .htpasswd
Unable to delete the file xxxert_Calendar.ics
Unable to delete the subdirectory /otelho.com/calendars - it may not be empty
Processing of directory /otelho.com/calendars completed
o Unable to delete the subdirectory /otelho.com - it may not be empty
o Processing of directory /otelho.com completed

# All the selected directories and files have been processed.



Edited by palladian on 10/08/07 04:12 AM (server time).

Re: unable to delete files

Posted by: rlparker
Posted on: 2007-10-08 05:23:00

From those messages, it looks like the DH webftp might be borked. You should have no problem if you use a real FTP client.

--rlparker

Re: unable to delete files

Posted by: sdayman
Posted on: 2007-10-08 06:18:00

You can also cheat by making it a cronjob to run hourly, then delete it:

/bin/chmod 0777 ~/otelho.com/calendars

-Scott

Re: unable to delete files

Posted by: rlparker
Posted on: 2007-10-08 06:49:00

In reply to:

You can also cheat by making it a cronjob to run hourly, then delete it:

/bin/chmod 0777 ~/otelho.com/calendars


Nice, Scott! That's pretty creative! smile

--rlparker

Re: unable to delete files

Posted by: palladian
Posted on: 2007-10-08 15:42:00

Dreamhost deleted the files for me.

How can it possibly be so difficult to delete files I uploaded a few days ago ?

Re: unable to delete files

Posted by: rlparker
Posted on: 2007-10-08 16:32:00

Without knowing all the details, I can only guess. It could be that they were uploaded as (an hence, owned by) a different machine user (if you have multiple users on your account). It could be that somehow the permissions on the files got changed. Who really knows?

Now that the files have been deleted, it would be next to impossible to figure out how it happened. wink

--rlparker

Tags: webftpnet2ftpndncommand chmodusrcalendarsftp servers0777occuredtechnical detailsfilesystemarrayhtpasswddelete fileswindows ftpserver time