krish – 起死回生 [Wake up from death & return to life.]

March 24, 2008

Configure SVN – the simplest way

Filed under: Free / Open Source — krish @ 2:32 pm
Tags: , ,

Ok I confess, I was too lazy to update posts here; just broke it. 😛

This is a quick look at using svn at its simplest form.

Install subversion using your favourite package manager.

To create new repository
svnadmin create /path/to/repo

To disable anonymous access and set path for passwd and authz file
Edit /path/to/repo/conf/svnserv.conf

Remove prefix “#” for lines
1. password-db = passwd
2. authz-db = authz
3. anon-access = read
4. realm = My First Repository

Now change `anon-access = read` to `anon-access = none` and `realm = My First Repository` to `realm = yourprojectname`.

To add users and passwords
Edit /path/to/repo/conf/passwd

Add usernames/passwords in this file in the following format
username = password
example: krish = i_forgot_my_password

Save & Exit

To add path specific access control
Edit /path/to/repo/conf/authz

Under section [group], add new group names as follows:
ournewgroup = user1, user2, user3
Please ensure that all users added to groups exists in the conf/passwd file.

Under section [/foo/bar], add access control list to specific paths of your projects like this:
[/foldername/under/repo]
user1 = rw
user2 =
@ournewgroup = r
* =

Now to start our SVN process, run command
svnserve -d

Your SVN is now ready. For svn clients you can use TortoiseSVN on Windows or svn client comes bundled with most linux distributions.

Advertisements

4 Comments »

  1. Great post. Finally a site that explains it in simple terms and straight to the point. Every other posts talks about Apache and mod_svn_authz.

    Thanks.

    Only confusing thing is that you mention how to create a repository, but not how to import a project.. and about the svn:// URL, so I’m not sure how the path would look in [] if I am trying to limit access to one project only?

    Comment by blueness — April 21, 2008 @ 2:51 am

  2. For multiple projects, create new repo for each and you can specify a same authz and passwd file in /conf/svnserve.conf for all repositories.

    Then in authz file, use path to the repo and limit access.

    Comment by krish — May 1, 2008 @ 7:52 pm

  3. Most of the people I’ve met are happy with TortoiseSVN, if you’d really need straight to point post on import and using svn urls I’d be happy to do that also 😉

    Comment by krish — May 1, 2008 @ 7:54 pm

  4. Oh, I forgot to tell, you could also use
    [repository:/path] in authz

    Comment by krish — May 1, 2008 @ 8:04 pm


RSS feed for comments on this post. TrackBack URI

Please leave a Reply / Discuss this topic here :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

The Male Factor

On behalf of the ignored gender

Rough Draft

by Atteris Amarth and Darrek Ringo

The Kochi Post.

Read by all + Influenced by none

JumboMake

A signature of Kiran

SAAYAM CHEDDAM FOUNDATION

This blog is just for additional and extension share of it's main frames. No activity is planned from here

krish - 起死回生 [Wake up from death & return to life.]

Get a sneak peek into krish's life, work and passion.

WordPress.com

WordPress.com is the best place for your personal blog or business site.

A Tale of Two and a Half

Monika Amita Bakshi

%d bloggers like this: