我希望只允许我的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文件中的密码(第一行,这是Tor顶上缓存的)使Tor顶上提示我要一个新的登录--我甚至不必重新启动服务器。
为你们的愚蠢表示歉意,感谢你们的帮助!
发布于 2014-06-13 09:30:14
svn ls svn://URL/TO/REPO的输出https://stackoverflow.com/questions/24200177
复制相似问题