使用本地 Linux 组对 SVN 用户进行身份验证?

发布于 2024-09-16 06:31:01 字数 213 浏览 1 评论 0原文

有谁知道如何配置 svn 使用本地 linux 组来验证用户身份?

例如,如果我们有:

devrepo = 应该可以被“dev”组和“prod”组访问

productionrepo = 应该只能被“prod”组访问

由于相关平台的安全限制,我们不能使用 Apache,因此只能使用 svnserve 或 plain旧的 svn+ssh 是可能的。

Does anyone know how I can configure svn to use local linux groups to authenticate users?

For example if we have:

devrepo = should be accessible by groups 'dev' and 'prod'

productionrepo = should be accessible by only the 'prod' group

Due to security limitations of the platform concerned, we cannot use Apache so only svnserve or plain old svn+ssh are the possibilities.

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

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

发布评论

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

评论(1

迟到的我 2024-09-23 06:31:01

svn+ssh 完全依赖于文件系统的权限。在你的例子中这是一件好事。

唉,我对 Linux 的 ACL 支持(而不是旧的UNIX 风格的文件权限)来帮助您设置适当的 ACL 权限...并且您需要 ACL 来为多个组分配一个目录的权限。

svnserve 是正确的,因为它使用自己的用户和组。

svn+ssh relies entirely on the filesystem's permissions. This is a good thing in your instance.

Alas, I'm not familiar enough with Linux's ACL support (rather than older UNIX-style file permissions) to help you set the appropriate ACL permissions... and you'll need ACLs to assign a directory's permissions for more than one group.

svnserve is right out, as it uses its own users and groups.

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