[版本控制]subversion之svnserver配置陷阱-空格问题

来源:互联网 发布:郝斌c语言 编辑:程序博客网 时间:2024/04/30 01:33

安装了subversion服务器windows版本后,直接使用svnserver是最方便的选择,其配置文件位于安装时设置的代码目录下conf文件夹下,其中svnserve.conf就是服务器配置文件,看其说明很容易进行配置,但是有一个隐藏的陷阱很容易被忽视(我就是陷在里面浪费了近2个小时的时间)。这个陷阱就是在取消注释或者添加新项目时,行头不能有空格。比如说,配置匿名用户和授权用户的访问权限:

 

[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 = read

     auth-access = write

如果按照上面的写法,那么未授权(匿名)用户可以读代码库但是不能提交代码,但是授权用户就出现访问问题,就是因为“auth-access = write”多加的空格。

所以正确的方法是:

 

[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 = read

auth-access = write

其他配置文件也是如此。

 

 

 

原创粉丝点击