开发者

Is it possible to store a file in SVN which cannot be seen by other users

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).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜