A copy of my webdav share is made when backups are triggered by software updates. (ie. when I do a wordpress update, domain.com is copied to domain.com.old) Since the copy retains all the original permissions and ownership, I can not modify/delete the copied folder. Is there a way remove the copy of the webdav share from the shell somehow? Or do I need to talk to Dreamhost tech support?
hmm… what is the file permission on the copied folder?
here’s an ls of the webdav share
drwxr-xr-x 4 dhapache dhapache 4096 2007-08-24 11:53 webdav
ls of inside webdav
drwxr-xr-x 4 dhapache dhapache 4096 2007-08-24 11:53 .
drwxr-x— 2 dhapache dhapache 4096 2006-01-17 21:15 .DAV
-rw-r----- 1 dhapache dhapache 6148 2006-01-17 22:00 .DS_Store
-r-------- 1 dhapache dhapache 424 2007-08-24 11:53 .htaccess
-r–r----- 1 dhapache dhapache 40 2007-08-24 11:53 .htpasswd
drwxr-x— 4 dhapache dhapache 4096 2006-01-17 21:43 subfolderofwebdav
Well there ya have it … dhapache owns everything, and no one else has write privs. This mean you will need DH tech support to do the deletions (or write a PHP script and run it under mod_php to delete the stuff yourself).