SVN:svnserve.conf不限制访问
我想只允许passwd文件中的用户访问我的存储库。我的svnserve.conf如下所示:SVN:svnserve.conf不限制访问,svn,authentication,repository,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 ###
### 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文件如下所示(为安全起见更改了登录/密码):
但出于某种原因,我仍然可以在不登录的情况下通过浏览器访问我的回购协议。我已经重新启动了我的httpd服务器,并且正在AWS(Linux)上运行
有人知道我遗漏了什么吗
更新:
SVN服务正在运行,如下所示:
[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提示我重新登录——我甚至不必重新启动服务器
为这一愚蠢行为道歉,并感谢大家的帮助
svn ls的输出svn://URL/TO/REPO
配置看起来不错。svnserve在运行吗?它一直在运行,我只是个白痴。谢谢最后一行向我展示了它的工作原理,我只是没有意识到,因为TortiseSVN缓存了我的凭证,而我从未注意到。谢谢你的帮助!
[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