Hi goutham varma,
Welcome to Microsoft Q&A Forum, thank you for posting your query here!
To set up SFTP users with different permissions (read-only and read/write) for your Azure Blob Storage mounted on Linux machines using Blob fuse, you can follow these steps:
- Blobfuse installed and configured on your Linux machines.
- SFTP server (like OpenSSH) installed on your Linux machines.
- Access keys for your Azure Blob Storage account.
Steps
1. Create SFTP Users
First, create the SFTP users on your Linux machine.
2. Configure SFTP Server
Edit the SSH configuration file to set up the SFTP server.
3. Set Permissions
Set the appropriate permissions for the SFTP users.
4. Restart SSH Service
Restart the SSH service to apply the changes.
Testing
- For Read-Only User:
- Connect using SFTP with the sftp_readonly user and verify that you can only read files.
- For Read/Write User:
- Connect using SFTP with the sftp_readwrite user and verify that you can read and write files.
- Ensure that the Blobfuse mount point (/mnt/blobfuse/container) is correctly set up and accessible.
- Adjust the paths and permissions as needed based on your specific setup.
This setup should allow your SFTP users to access the Azure Blob Storage container with the specified permissions directly from the Linux machine.
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.