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.