开发者

Should I use ACLs if I want to limit access to files on a per-group basis? If so - what's a good Java library?

Not too sure if I'm barking up the right tree,开发者_StackOverflow社区 so I'm wondering if ACLs are the way to go.


As far as I know, Access Control Lists (ACLs) for file system access highly depend on the the operating system, so I really doubt there's a Java library for that.

On the other hand, Java offers ACL directly (java.security.Acl), so if you have an application for different users, you can use that ACL to restrict access to ressource within the application (which doesn't prevent a user from changing a file on the file system with his user permissions on the operating system).


See if Spring Security can help you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜