当前位置: 代码迷 >> CVS/SVN >> svn error 提示:未授权打开根进行编辑操作"的异常
  详细解决方案

svn error 提示:未授权打开根进行编辑操作"的异常

热度:5128   发布时间:2013-02-26 00:00:00.0
svn error 提示:未授权打开根进行编辑操作"的错误

?

1、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 = readauth-access = write### The password-db option controls the location of the password### database file.  Unless you specify a path starting with a /,### the file's location is relative to the conf directory.### Uncomment the line below to use the default password file.password-db = passwd### The authz-db option controls the location of the authorization### rules for path-based access control.  Unless you specify a path### starting with a /, the file's location is relative to the conf### directory.  If you don't specify an authz-db, no path-based access### control is done.### Uncomment the line below to use the default authorization file.authz-db = authz### This option specifies the authentication realm of the repository.### If two repositories have the same authentication realm, they should### have the same password database, and vice versa.  The default realm### is repository's uuid.# realm = My First Repository~

?

?2、authz文件的配置代码如下:

?

### This file is an example authorization file for svnserve.### Its format is identical to that of mod_authz_svn authorization### files.### As shown below each section defines authorizations for the path and### (optional) repository specified by the section name.### The authorizations follow. An authorization line can refer to a### single user, to a group of users defined in a special [groups]### section, or to anyone using the '*' wildcard.  Each definition can### grant read ('r') access, read-write ('rw') access, or no access### ('').[groups]# harry_and_sally = harry,sallyadministrators = admindevelopers = liwx,developer1# [/foo/bar]# harry = rw# * =# [repository:/baz/fuz]# @harry_and_sally = rw# * = r[project:/]@administrators = rw@developers = rw* =~

?

问题描述:

?

通过TortoiseSVN 浏览SVN服务器上的目录时 总是提示:未授权打开根进行编辑操作"的错误。

?

解决方法:

?

去掉
anon-access = read
auth-access = write
的注释

anon-access = read
改成
anon-access = none

我猜测checkout的时候SVN看到anon-access = read,就不要求用户名密码,而到了具体目录的时候问题发生了,这时没有用户密码就不能获得文件所以出错了。

而写的时候本身就需要身份验证所以不出错。

?

  相关解决方案