hierynomus / smbj

Server Message Block (SMB2, SMB3) implementation in Java
Other
718 stars 180 forks source link

Question: Access subfolder where user has no access share by ACL #559

Open acarlsen opened 4 years ago

acarlsen commented 4 years ago

First of all great library. It works great.

I however have a use case I am unsure is supported.

I have a hidden share which denies user access, however a sub folder allows access.

C:\ ^--- hiddenshare (shared via SMBv2, NTFS ACL denies access for the user I'm using to logon) ____^----subfolder1 (NTFS ACL grants access for the user I'm using to logon)

How do I list files on sub folder when I can not access share? Windows client can do this.

SamerAdra commented 3 years ago

@acarlsen I am facing the same issue. Have you found any workaround such as a different Java library?

acarlsen commented 3 years ago

No, I haven't found a solution other than to change access right for hidden share.