`

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 = read
auth-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,sally
administrators = admin
developers = 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,就不要求用户名密码,而到了具体目录的时候问题发生了,这时没有用户密码就不能获得文件所以出错了。

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

 

分享到:
评论

相关推荐

    SVN各种错误提示产生原因及处理方法大全

    本文将对 SVN 中常见的错误提示进行分析,并提供相应的解决方法。 1. svn: Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for '...

    SVN常见的错误及解决方法

    在使用Subversion(SVN)进行版本控制时,可能会遇到各种错误情况,这些错误通常与认证、权限、网络连接、客户端版本以及服务器设置等相关。以下是一些常见的SVN错误及其解决方法: 1. **错误信息:Server sent ...

    SVN报错:Error Updating changes:svn:E155037的解决方案

    在使用Subversion (SVN) 进行版本控制时,可能会遇到各种错误,其中之一就是"Error Updating changes: svn:E155037"。这个错误通常表明在执行SVN操作时发生了问题,可能是由于文件或目录的锁、冲突或其他内部数据库...

    SVN_commit错误分析经验共享

    SVN全称Subversion,是一个用于管理软件源代码版本的系统,允许团队成员对同一份代码进行协同编辑,并记录每一次修改,便于追踪历史变化和回溯。SVN的核心概念包括仓库(Repository)、工作副本(Working Copy)以及...

    myeclise10之svn:E210004错误解决

    myeclise10 svn: E210004: Number is larger than maximum 解决方案 专门解决win7 64位操作系统 下svn插件问题。 下载文件包括: site-1.8.22.zip --->svn离线安装包 Slik-Subversion-1.8.9-x64 --->问题修复必选...

    SVN属性配置:必须输入日志/日志模版

    在SVN中,`svn:log`属性是用于存储提交日志的,当用户执行`svn commit`命令时,系统会检查这个属性,如果未设置或者日志消息为空,提交将会被阻止,以确保每次提交都有清晰的变更记录。这对于团队协作和代码管理至关...

    转svn-E170001报错的原因以及解决方案.docx

    svn-E170001报错是指在使用Jenkins配置svn拉取项目时出现的一种错误,错误信息为svn: E170001。该错误的出现是由于svn账户名和密码没有权限所导致的。 svn-E170001报错的原因: 1. svn账户名和密码没有权限:svn...

    常见SVN错误处理大串讲

    - 确认SVN服务器URL正确无误,例如应使用 `svn://192.168.6.200/` 而不是 `svn://192.168.6.200`。 - 检查网络连接状态。 - 重启SVN服务器或联系管理员确认服务器状态。 #### 错误三:`Add后未Commit,文件仍...

    svn中文操作手册

    本 SVN 中文操作手册将深入讲解 SVN 的基本概念、安装与配置、命令行操作以及日常开发中的实践应用。 1. SVN 基本概念: - 版本库(Repository):存储所有文件和目录变更历史的中央数据库。 - 工作副本(Working...

    svn: This client is too old to work with

    usage: change-svn-wc-format.py WC_PATH SVN_VERSION [--verbose] [--force] [--skip-unknown-format] change-svn-wc-format.py --help Change the format of a Subversion working copy to that of SVN_...

    RapidSVN:轻量级、可视化SVN客户端RapidSVN-0.13.0.8249-PortableSoft

    RapidSVN是一款轻量级且用户友好的可视化Subversion(SVN)客户端,专为开发者和团队协作设计。Subversion是一种版本控制系统,用于管理软件项目中的文件和目录的更改历史,使得多人协同开发变得更加高效和有序。...

    SVN分级授权工具部署手册--Windows用户认证--Visual-SVN-权限

    综上所述,SVN分级授权工具部署手册是一个详尽的技术文档,它不仅指导用户如何在Windows环境下部署和配置SVN服务,还包括了使用SVN分级授权工具进行日常管理和维护的具体操作。通过遵循手册中的步骤,用户可以实现对...

    svn ( 解决冲突 )confict

    3. **合并(Merge)**:如果检测到冲突,SVN会提示Harry下载其他用户的更改,并允许他手动合并这些更改,生成最终版本的文件A*。完成合并后,Harry将文件A*提交至仓库。 这种方法更适合处理文本类型的文件,因为...

    SVN附带汉化包

    SVN通过版本库来存储项目的所有历史版本,每个开发者都可以从版本库中检出(Checkout)最新的代码到本地工作,然后进行修改。当完成一部分工作后,开发者可以将改动提交(Commit)回版本库,这样其他团队成员就能...

    SVN 出错误清理工具 sqlite3.exe

    当svn 出现clean up 死循环时,或者无法提交提示错误时。 1.把sqlite3.exe放到.svn文件夹下 2.在.svn目录下打开命令行输入以下语句: sqlite3 wc.db "delete from work_queue" sqlite3 wc.db "delete from wc_lock" ...

    解决SVN上传提示Empty directoriesis not supported

    解决SVN上传提示Empty directoriesis not supported 解决SVN上传提示Empty directoriesis not supported

Global site tag (gtag.js) - Google Analytics