How can I CHMOD files/directories on Windows Azure?
I found a hack solution to delete files on Azure:
- Stop your website from the management console (https://manage.windowsazure.com)
- Open up the FTP site in Filezilla
- Rename the directory that has the problem to anything else (Possibly an optional step, I dont know)
- Delete the renamed directory
- Restart your website.
That seems to do it.
Windows Azure Websites is a Windows Server based server. Thus, file permissions don't work like in Linux (as @SLaks already mentioned).
However, the account your scripts (PHP/ASP.NET/node.js) are executed under has full access to the folder /site/wwwroot
, as does your FTP user. Meaning that from your PHP you can do all fully privileged file access operations - Read, Write, Delete, Create, Create directories.What you cannot do, and cannot be changed, is to execute scripts (which 0777 would give you in Linux).