File and Folder permissions

Adalberto García Espinosa 86 Reputation points
2021-02-04T18:48:24.773+00:00

Hi,

I have a WP server on Azure. I tried to use the console on the Azure portal to change the permissions of some files an directories using chmod. The command seems to be executed since no error message appears, but permissions are not changed. Do I have to do something else? What's going on?

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

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2021-02-04T22:36:41.963+00:00

    Hello @Adalberto García Espinosa ,

    Thanks for the question. Please use the Kudu console via (https://[sitename].scm.azurewebsites.net/DebugConsole) or through the Azure portal to look at your files and double-check their permissions. This time try using the 'attrib' command to verify the read/write attributes of your files. 'attrib' displays, sets, or removes the read-only, archive, system, and hidden attributes assigned to files or directories. Used without parameters, attrib displays attributes of all files in the current directory.

    For example:

    To display the attributes of a file named News86 that is located in the current directory, type:

    attrib news86  
    

    To assign the Read-only attribute to the file named test.txt, type:

    attrib +r test.txt  
    

    To remove the Read-only attribute to the file named test.txt, type:

    attrib -r test.txt  
    

    Hope that helps. If you have further questions please let us know

    Best,
    Grace

    64154-kudup.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.