阻止某些用户访问 SVN
全部, 我有一个 SVN 存储库,通过 Apache2 Web 服务器通过 HTTP 托管/公开。 我有 30 个用户群,在某些时候我想禁用除少数用户之外的大多数用户的访问,而无需更改访问策略并重新启动服务器。目标是在一段时间内仅允许某些用户访问 SVN,而其他用户无法访问存储库。
在SVN中可以吗?
谢谢。
All,
I have an SVN repository hosted/exposed over HTTP through an Apache2 webserver.
I have 30 user base, at some point I want to disable the access to most of them except few users without having to change the access policy and restart the server. The goal is to allow only certain users to have access to SVN for a period of time in which other users can not access the repository.
is it possible in SVN?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您通常要做的就是更改 svn auth 文件,该文件定义了 subversion 存储库的用户、组和访问权限。请参阅有关“基于路径的身份验证” 如何做到这一点。
您的工作流程将如下所示:
每次向服务器发送请求时都会读取 svn auth 文件,无需重新启动服务器。
变体可以是(更高级的设置):
所以你只需要在本地更新和提交,其余的将由 post-commit-hook 完成。
What you normally do is to change your svn auth file that defines the users, groups and access rights for your subversion repository. See the documentation about "path based authentication" how to do that.
Your workflow would go like that:
The svn auth file is read every time a request is sent to the server, there is no need to restart the server.
A variant could be (more advanced setting):
So you only have to update and commit locally, the rest will be done by the post-commit-hook.