Reading Windows ACLs from Java
Posted
by Matt Sheppard
on Stack Overflow
See other posts from Stack Overflow
or by Matt Sheppard
Published on 2010-05-12T01:08:56Z
Indexed on
2010/05/12
1:14 UTC
Read the original article
Hit count: 314
From within a Java program, I want to be able to list out the Windows users and groups who have permission to read a given file. Obviously Java has no built-in ability to read the Windows ACL information out, so I'm looking for other solutions.
Are there any third party libraries available which can provide direct access to the ACL information for a Windows file?
Failing that, maybe running cacls and capturing and then processing the output would be a reasonable temporary solution - Is the output format of cacls thoroughly documented anywhere, and is it likely to change between versions of Windows?
© Stack Overflow or respective owner