How to change file permissions on Azure Web App

Developer TeleCareIt 25 Reputation points
2024-05-14T16:10:13.44+00:00

Hello, I'm having trouble changing the file permissions of my Azure Web App. When I try to use SFTP, I receive a 500 error, and using SSH has not been successful. Can someone provide guidance on how to change file permissions on an Azure Web App?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,237 questions
0 comments No comments
{count} vote

Accepted answer
  1. Grmacjon-MSFT 17,136 Reputation points
    2024-05-20T08:25:35.0133333+00:00

    Hello @Developer TeleCareIt Changing file permissions on Azure Web Apps directly through SFTP or SSH isn't supported, however, Azure Web Apps have a built-in management plane called Kudu. It provides a web interface for basic site management tasks, including changing file permissions. The URL for Kudu follows the format https://<your-app-name>.scm.azurewebsites.net. Replace <your-app-name> with your actual web app name. You'll need your deployment credentials (username and password) to access Kudu. These can be retrieved from the Azure portal for your web app.

    • To Change File Permissions:
      • Once logged in to Kudu, navigate to the "Files" blade.
      • Locate the file or folder where you want to modify permissions.
      • Right-click on the file/folder and select "Permissions".
      • A dialog box will appear where you can adjust user/group permissions using checkboxes.

    Hope that helps.

    Best,

    Grace

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Jason Damisch 0 Reputation points
    2024-06-21T21:42:55+00:00

    I am doing a 30 day "free" trial of Azure Cloud. I have a web app setup for WordPress. In the Dashboard for WordPress I get this message.

    "/var/www/wordpress/wp-content is write-able. When finished installing the plugin, change the permissions back to the default: chmod 755 /var/www/wordpress/wp-content. Permissions are currently 777"

    I noticed that I cannot change the file or folder permissions using an FTP program, nor do I seem to be able to do so using the plugin WP File Manager.

    So I log into Kudo. Then I click on

    Browse Directory > Site wwwroot

    I can see my files and folders but right clicking on any of these does nothing. What am I missing?

    Jason

    0 comments No comments