首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SVN: svnserve.conf不限制访问

SVN: svnserve.conf不限制访问
EN

Stack Overflow用户
提问于 2014-06-13 07:44:13
回答 1查看 704关注 0票数 0

我希望只允许我的passwd文件中的用户访问我的存储库。我的svnserve.conf如下所示:

代码语言:javascript
复制
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository. (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
anon-access = none
auth-access = write

realm = Sample Repository
password-db = passwd

我的passwd文件看起来如下(为了安全起见更改了登录/密码):

代码语言:javascript
复制
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.

[users]
# harry = harryssecret
# sally = sallyssecret
mike = passw0rd
jim = ex4mple
bob = an0th3r
andy = 1more

不过,出于某种原因,我仍然可以使用浏览器访问回购,而无需登录。我重新启动了httpd服务器,并在AWS (Linux)上运行。

有人知道我错过了什么吗?

更新:

svnserve正在运行,如下所示:

代码语言:javascript
复制
[ec2-user@ip-xxx-xx-xx-xxx ~]$ ps -ef | grep svnserve
ec2-user  8083     1  0 07:03 ?        00:00:00 svnserve -d --foreground -r /home/svn/
ec2-user 13655 13603  0 16:25 pts/1    00:00:00 grep svnserve

解决了

我是个白痴:原来我认为它不起作用的原因是TortiseSVN在缓存我的凭据而没有向我展示它,所以当我试图通过命令行/终端连接时,它实际上促使我登录。更改passwd文件中的密码(第一行,这是Tor顶上缓存的)使Tor顶上提示我要一个新的登录--我甚至不必重新启动服务器。

为你们的愚蠢表示歉意,感谢你们的帮助!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-06-13 09:30:14

  1. Apache与svnserve的存储库一点关系都没有
  2. 显示init-脚本来运行svnserve (您可以使用另一个conf和用户文件)
  3. 显示svn ls svn://URL/TO/REPO的输出
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24200177

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档