Unable to add additional local sftp user to a child folder within SFTP/Blob container

Ramkumar Perumal 30 Reputation points Microsoft Employee
2025-04-01T07:34:34.76+00:00

My storage is ADLS Gen2, SFTP is enabled.

I have a child folder named testdirectory1child1 under a container as shown below. (testfolder is the container name).

testfolder/testdirectory1/testdirectory1child1

I have three local SFTP users: test1, test2 and test3. I need to give test1 read access to testdirectory1child1 folder, and test2, and test3 to be given read and write access to testdirectory1child1 folder.

Using the provided documentation, I can only set or change owner for only one test user, but not for all three.

If i change to another user, the previous owner is changed and hence the user lost access.

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.
3,471 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Luis Arias 8,591 Reputation points
    2025-04-01T08:30:08.89+00:00

    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:

    If the information helped address your question, please Accept the answer. Luis


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.