Unable to change ownership of mounted partition of Azure file share

Durgesh Palav 21 Reputation points
2024-06-11T06:45:10.5866667+00:00

Hi,

I am using the Azure file share option on the Azure Linux VM, but for the same we are not able to change the owner of the file share mount directory.

Since it is by default mounted in /mnt/partition, I have mounted it on a separate specific directory but am still unable to change the owner of the directory as well as the files under that.

Also, files and directories created by the other users except the root user are stored with the root permission.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,863 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deepanshukatara-6769 6,715 Reputation points
    2024-06-11T06:55:45.27+00:00

    Hi Durgesh ,

    Welcome to MS Q&A

    Azure File Share does not support manipulation of permissions within the mounted volume. Operations such as chown and chmod will not work with CIFS implementation of the SMB protocol.

    You will either need to create separate volumes for each permissions variation required, or select a different storage class/volume type for your volume.

    Please check below Image and doc link for more ref

    https://video2.skills-academy.com/en-us/troubleshoot/azure/azure-kubernetes/storage/could-not-change-permissions-azure-files

    User's image

    kindly accept answer if it helps, please let us know if further questions

    Thanks
    Deepanshu

    0 comments No comments

0 additional answers

Sort by: Most helpful