[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: svnserve on W2K3

From: Harvey, Edward <Edward.Harvey_at_patni.com>
Date: Thu, 20 Mar 2008 19:14:15 -0400

Ah, since you really just want an example of how to set up a basic svnserve server on Windows 2003, here's a copy of what I wrote for myself before:

1) Please see this guide for details:
This is also useful:

2) Install subversion: svn-1.4.4-setup.exe

3) Create a new folder D:\subversion
        a. Create a subfolder D:\subversion\repos
        b. Create a subfolder D:\subversion\repos\myfiles
        c. Create the initial repository as follows:
                "C:\Program Files\Subversion\bin\svnadmin.exe" create --fs-type fsfs D:/subversion/repos/myfiles
        d. Make sure it's well protected with Windows Permissions.

4) Open a command prompt, do this:
        sc create svnserve binpath= "C:\Program Files\Subversion\bin\svnserve.exe --service --root D:\subversion\repos" displayname= "Subversion svnserve" depend= tcpip start= auto

5) Start the svnserve as follows:
        net start svnserve

6) Create a DNS alias "svn" that redirects to your svn server.

7) Go edit all the files in D:\subversion\repos\myfiles\conf
        a. Example authz:

        b. Example svnserve.conf:
        anon-access = none
        auth-access = write
        password-db = passwd

        c. Example passwd:
        harry = harrysecret
        sally = sallysecret

8) Now use your svn client to checkout the repository, svn://svn.domain.local/myfiles

> -----Original Message-----
> From: Laker Netman [mailto:laker_netman_at_yahoo.com]
> Sent: Thursday, March 20, 2008 11:15 AM
> To: users_at_subversion.tigris.org
> Subject: svnserve on W2K3
> Can anyone recommend a complete guide for setting up svnserve
> (Subversion 1.4.6) on Windows Server 2003 (SP2)? In particular, I am
> having a heck of a time getting the security in svnserve.conf and authz
> structured correctly. I have googled this a lot and read several semi-
> detailed posts, but I can't find one that definitively says
> authorization works as it should in Windows-land. FWIW, I'm stuck with
> IIS and no DAV, so svnserve is my only choice (yes?).
> I am running svnserve as a service with my repository root (-r) at
> D:\SVN. I follow the "repository per project structure" as described
> in Chapter 5 of the Subversion book. So my directory structure is thus:
> D:\SVN
> \projA
> \Trunk
> \Tags
> \Branches
> \projB
> \Trunk
> \Tags
> \Branches
> ...etc
> I did an "svn create..." to make each "projX" folder. So, within each
> folder there is a separate \conf, \dav, \db, etc.
> I have read Chapter 6's section on Path-Based Authorization several
> times and can deny access to the repository setting anon_access=none in
> svnserve.conf on a per directory basis. But anything a I put in authz
> seems to result in an "authorization failed" error whether I'm trying
> to access the repo via TortoiseSVN or command line "svn" using the
> svn:// protocol.
> So, I think I'm correct that svnserve will honor the svnserve.conf and
> authz under each project folder. Right? But what should the syntax for
> the authz entries look like? And how should the svnserve.conf be
> written so I'm sure authz is being parsed? I guess what I am trying to
> figure out is what is svnserve trying to match the authz entries
> against during the authorization process between a Windows client
> (TortoiseSVN) and a Windows server running svnserve?
> Lastly, is passwd-db required for any of this to work? If I can avoid
> it that would be great. If not, are those passwords completely
> independent of OS-related authentication?
> Thanks in advance,
> Laker
> _______________________________________________________________________
> _____________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-21 00:14:38 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.