Access Denied error on azure smb file share while restoring data from recovery service vault

Haseeb, Rabia 0 Reputation points
2025-03-08T21:46:37.7766667+00:00

Hi community,

My SMB azure file share has been mounted on linux virtual machine. i need to restore database from recovery service vault which will be restore as files and azure file share is given as destination path. but it is giving access denied error. however, it was working file before. the file share mount has root privileges that's why when i have tried to create a folder with root user it is working but if i use another user, i don't have access.
I need help.

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,403 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vinod Kumar Reddy Chilupuri 3,750 Reputation points Microsoft External Staff
    2025-04-09T11:50:46.9566667+00:00

    Hi Haseeb, Rabia,

    The "Access Denied" error you are encountering while restoring data to your Azure SMB file share may be related to share-level permissions. Since you mentioned that the file share mount has root privileges, but other users are experiencing access issues, it is likely that the share-level permissions for those users are not configured correctly.

    To resolve this issue, you should verify that the permissions are set up properly for the user accounts trying to access the file share. If you are using identity-based authentication, ensure that the user has the necessary permissions assigned to access the Azure file share.

    Additionally, check if there are any virtual network or firewall rules that might be restricting access to the storage account. If those rules are in place, ensure that the client IP address or virtual network is allow-listed.

    You need to review the configuration of the Azure file share, and the permissions assigned to the users.

    • The Linux mount options used when mounting the file share (e.g., uid, gid, file_mode, and dir_mode), which directly influence permissions for non-root users on Linux.
    • Troubleshooting tools like AzFileDiagnostics, which can help pinpoint issues such as misconfigurations or access problems.

    https://learn.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-linux?tabs=Ubuntu%2Csmb311
    https://learn.microsoft.com/en-us/troubleshoot/azure/azure-storage/files/security/files-troubleshoot-smb-authentication?tabs=azure-portal#error-5-when-mounting-an-azure-file-share

    Hope the above suggestion helps! Please let us know do you have any further queries.

    Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members. 


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.