2

我在通过 LDAP 与 AD 连接的 Ubuntu 16 LTS 实例中建立了一个 SVN 服务器。我的问题是:当用户在存储库的根级别上没有 R 权限时,我无法设置 Apache 或 SVN 模块来列出存储库的子文件夹。

例子:

[RepositoryABC]
user1=rw
user2=r

[RepositoryABC:/folder]
user3=rw

当 user1 和 user2 通过 SVN Apache 模块提供的 web 视图访问 SVN 时,都可以看到 RepositoryABC。但是,如果用户 3 尝试相同的操作,尽管他/她在子文件夹中具有权限,但他/她将得到一个空白页面。

4

1 回答 1

-1

我认为您可能会尝试使用 添加user3到根目录r,然后向他隐藏不需要的文件夹,例如:

[RepositoryABC]
user1=rw
user2=r
user3=r

[RepositoryABC:/OTHER_FOLDER_1_YOU_WANT_TO_HIDE_FROM_USER3]
user3=(syntax that hides)
[RepositoryABC:/OTHER_FOLDER_2_YOU_WANT_TO_HIDE_FROM_USER3]
user3=(syntax that hides)

[RepositoryABC:/folder]
user3=rw

只是一个想法,未经测试。

于 2018-10-25T11:55:32.427 回答