Unable to delete files


#1

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.


#2

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


#3

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

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

-Scott


#4

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

/bin/chmod 0777 ~/otelho.com/calendars[/quote]
Nice, Scott! That’s pretty creative! :slight_smile:

–rlparker


#5

Dreamhost deleted the files for me.

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


#6

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