Hello Ramkumar Perumal,
The challenge involves enabling multiple local SFTP users to access the same ADLS Gen2 folder without locking out previous owners when folder ownership is changed, thus requiring a method for concurrent access without conflict.
The best workaround is to use ACLs (Access Control Lists) instead of changing ownership. ACLs let you set permissions for multiple users at the same time, so you don’t have to worry about users losing access. (Take into consideration that these are still in preview. This means they might not be fully optimized for production environments yet.)
How to do it:
- Enable ACL authorization for your local SFTP users when creating them.
- Assign permissions using ACLs instead of changing ownership:( Give test1 read (r) access to testdirectory1child1 and Give test2 and test3 read and write (rw) access to testdirectory1child1)
- Apply ACLs using the following SFTP commands ( sftp> setfacl -m u:test1:r testdirectory1child1 )
- Verify permissions using: (sftp> getfacl testdirectory1child1)
References:
- https://learn.microsoft.com/en-us/azure/storage/blobs/secure-file-transfer-protocol-support
- https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-known-issues
- https://techcommunity.microsoft.com/blog/azurepaasblog/how-to-configure-directory-level-permission-for-sftp-local-user/4373620
- https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-access-control-model
If the information helped address your question, please Accept the answer. Luis