---
title: "简单的SVN服务器端配置文件"
author: "hlzhou"
date: "2010-04-27T13:24:29Z"
tags: []
categories: ["非技术"]
slug: "svn"
draft: false
lastmod: "2010-06-06T19:23:51Z"
id: 654082
url: "https://hlzhou.iteye.com/blog/654082"
---

Svnserve.conf文件里

\[general]

\# anon-access = read

\# auth-access = write

\# password-db = passwd

\# authz-db = authz

改为：（注意要顶格）

anon-access = read

auth-access = write

password-db = passwd

authz-db = authz

 

authz.conf文件里

\[groups]

\# harry\_and\_sally = harry,sally

\# harry\_sally\_and\_joe = harry,sally,&joe

 

\# \[/foo/bar]

\# harry = rw

\# &joe = r

\# * =

 

\# \[repository:/baz/fuz]

\# @harry\_and\_sally = rw

\# * = r

改为：（注意要顶格,@与单词要连在一起,这里的用户名与passwd.conf里的用户名要有对应）

 

\[groups]

harry\_and\_sally = harry,sally

\# harry\_sally\_and\_joe = harry,sally,&joe

 

\# \[/foo/bar]

\# harry = rw

\# &joe = r

\# * =

 

\# \[repository:/baz/fuz]

\# @harry\_and\_sally = rw

\# * = r

 

\[/]

\*=r

@harry\_and\_sally =rw

 

passwd.conf文件里

\[users]

\# harry = harryssecret

\# sally = sallyssecret

改为：（注意顶格，“=”前是用户名，后是密码）

\[users]

harry = harry

sally = sallyt

 

svnserve -d -r c:\\svn\_repository\\