开发者

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?

开发者 https://www.devze.com 2022-12-12 05:39 出处:网络
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 o

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

精彩评论

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

关注公众号