A PHP script accidentially changed the right flags (chmod) of a directory to 0. (No access to anybody, including owner). If I have no root access to this server, is it possible to delete the file again with FTP or PHP?
|
feedback
|
|
Barring some use of ACLs outside the basic permission system, a
If you have shell access and your shell user owns the file (or your user can change to the file's owner (su/sudo/…)), then just | ||||
|
feedback
|
|
Basically, no. You lost all access to the file. Only root can change the permissions on that file. Contact your system administrator, or the admins of the hosting company or ISP hosting the site. | |||
|
feedback
|
|
If you can amend the PHP that created the file in the first place, perhaps you could make the PHP reset the permissions to what you want... | |||
|
feedback
|
