开发者

How do I change the default password configuration in Subversion (svnserve)?

I'm creating a bunch of new repos, and each will be accessed开发者_C百科 by the same users. By default, SVN will create a passwd file with entries like this:

[users]
# harry = harryssecret
# sally = sallyssecret

I want to new repos to be created with my list of users, but I haven't been able to find a way do that. Does anyone know how?

Thanks.

Evan


Slightly old but it's surprisingly hard to find an answer to this question online. I just gave up and looked through the SVN source code and figured it out. Hope this is useful to others.

The "template" for the default config files in {repodir}/conf is actually hard-coded into the svn binaries. There's no actual template file that's being copied over when you create a new repo.

I think the easiest solution for people who create lots of new repos is to just make your own template config files and write a script to clobber the generated ones.


In the [general] section of the svnserve.conf there is a path to the password file. This file should govern the access to the repos that svnserve is currently serving, therefore there should only be one file. The svnbook has more details on svnserve and how to configure it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜