On a Linux box I mounted a CIFS file system with
mount ... cifs ...,cifsacl
and I am able to read out ACLs with /usr/bin/getcifsacl
. Further, on a Windows box, reading out ACLs in Java works with:
AclFileAttributeView view =
Files.getFileAttributeView(path, AclFileAttributeView.class)
But when I apply the same Java code to the CIFS mount on Linux, the view
is null
.
Is there a chance to tweak the CIFS mount or the Java code such that I can read ACLs? (I know jCIFS, but need to do without any additional Java class library.)
An answer would likely help here too.