Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I CHMOD files/directories on Windows Azure?

I am using FileZilla FTP to right click and change a directories File Permissions as I do on many other sites/servers. For some reason this is not working in Windows Azure. It outputs in FileZilla "500 'SITE CHMOD 777 (mydirectory)': command not understood"

Any ideas?

like image 995
The Atlantean Avatar asked Dec 09 '22 16:12

The Atlantean


2 Answers

The Windows Azure portal has a "Console" for websites where you can execute some shell commands. One of them appears to be chmod (fileutils) 4.1. I was able to modify the permissions on a folder using this:

chmod -R 744 myfolder
like image 175
James White Avatar answered Dec 12 '22 22:12

James White


I found a hack solution to delete files on Azure:

  1. Stop your website from the management console (https://manage.windowsazure.com)
  2. Open up the FTP site in Filezilla
  3. Rename the directory that has the problem to anything else (Possibly an optional step, I dont know)
  4. Delete the renamed directory
  5. Restart your website.

That seems to do it.

like image 40
MunsterMan Avatar answered Dec 12 '22 22:12

MunsterMan