匿名访问 svn 存储库的部分内容

发布于 2024-11-02 12:48:16 字数 433 浏览 2 评论 0原文

我一直在网上和 SO 上的其他帖子查找如何添加对我的 svn 存储库的匿名访问,但似乎没有任何效果。我的存储库所在的目录中有 svnaccess.conf 文件,并且我设置了对项目具有读写访问权限的组,如下所示:

[groups]
admins = administrator
myproject= me

[/]
# give admins read/write access to all repositories
@admins = rw

[myproject:/]
@myproject= rw

这对于具有读写访问权限的用户来说效果很好。但我想允许匿名访问该项目,以便任何人都可以在尝试查看存储库时获得读取访问权限,而无需显示登录屏幕。我见过的很多帖子都涉及将 * = r 和 anon-auth = read 添加到文件中,但当我尝试时它仍然显示登录屏幕。我做错了什么吗?

I've been looking online and at the other posts on SO to figure out how to add anonymous access to my svn repository but nothing seems to work. I have the svnaccess.conf file in the directory where my repository is and I have groups setup with read and write access to the project like this:

[groups]
admins = administrator
myproject= me

[/]
# give admins read/write access to all repositories
@admins = rw

[myproject:/]
@myproject= rw

This works fine for users who have read and write access. But i want to allow anonymous access to the project so anyone could have read access without having the login screen showup when trying to view the repository. A lot of the posts i've seen have involved adding * = r and anon-auth = read to the file but when i tried that it still shows the login screen. Am i doing something wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吹梦到西洲 2024-11-09 12:48:16

您是否还在 Apache conf 中添加了 Satisfy Any

Apacheconf 可能是这样的:

 <Location /svn/>
   DAV svn
   AuthName "Subversion Repositories"
   AuthType Basic
   AuthBasicProvider file
   AuthUserFile "htpasswd"
   AuthzSVNAccessFile "authz"

   **Satisfy Any**
   Require valid-user
</Location>

Did you also add Satisfy Any in Apache conf?

Apache conf could be something like this:

 <Location /svn/>
   DAV svn
   AuthName "Subversion Repositories"
   AuthType Basic
   AuthBasicProvider file
   AuthUserFile "htpasswd"
   AuthzSVNAccessFile "authz"

   **Satisfy Any**
   Require valid-user
</Location>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文