I have a file which is kind of confidential which should not be seen by users othe开发者_如何学运维r than my own . Is it possible?
Subversion does Path Based Authorization, so yes. The linked documentation has an example with a "secret" directory. You can also use * =
to take away all access by default, and then grant it again for a specific group like this:
[/path/to/secret]
* =
@secret_users = rw
[groups]
secret_users=alice,bob
When somebody without authorization tries to read the file, they will get a 403 Forbidden
(if the repository is hosted with apache - I assume another similar error is shown if you use svnserve
).
精彩评论