SVN:svnserve.conf不限制访问

时间:2014-06-13 07:44:13

标签: svn authentication repository

我想只允许passwd文件中的用户拥有对我的存储库的任何访问权限。我的svnserve.conf如下所示:

### 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文件如下所示(为了安全起见,登录/密码已更改):

### 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正在运行,如下所示:

[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文件中更改我的密码(对于第一行,这是Tortise缓存的)使Tortise提示我进行新的登录 - 我甚至不必重启我的服务器。

为愚蠢道歉并感谢大家的帮助!

1 个答案:

答案 0 :(得分:1)

  1. Apache与所有
  2. 的svnserve&#d存储库无关
  3. 显示运行svnserve的init-script(您可以使用另一个conf和用户文件)
  4. 显示svn ls svn://URL/TO/REPO
  5. 的输出