<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Svnserve on Details...</title>
    <link>https://www.deepreflect.net/tags/svnserve/</link>
    <description>Recent content in Svnserve on Details...</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Copyright © 2003 - 2026 Leonardo Rizzi</copyright>
    <lastBuildDate>Tue, 30 Jun 2026 03:28:29 +0200</lastBuildDate>
    <atom:link href="https://www.deepreflect.net/tags/svnserve/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Configuring the svnserve daemon</title>
      <link>https://www.deepreflect.net/2009/03/29/configuring-the-svnserve-daemon/</link>
      <pubDate>Sun, 29 Mar 2009 12:59:32 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=449</guid> 
      <description>&lt;ul&gt;
&lt;li&gt;Creating the repositories&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you have not created any subversion repositories yet, you can create one with svnadmin:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# svnadmin create ~/my-repository&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Tweaking svnserve.conf&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Open up and edit the svnserve.conf file located in the $HOME/my-repo/conf/ directory.&lt;/p&gt;
&lt;p&gt;Sample $HOME/my-repo/conf/svnserve.conf&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[general]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Path to the file containing svn users and passwords.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;password-db = $HOME/my-repo/conf/passwd
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Authentication realm of the repository. Two repositories using the
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# same password-db should have the same realm.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;realm = My-test-repository
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Deny all anonymous access
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;anon-access = none
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Grant authenticated users read and write privileges
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;auth-access = write
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;Setting up password authentication&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Open up and edit the password-db file (ie. $HOME/my-repo/conf/passwd). A sample entry might look like this:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<ul>
<li>Creating the repositories</li>
</ul>
<p>If you have not created any subversion repositories yet, you can create one with svnadmin:</p>
<p><code># svnadmin create ~/my-repository</code></p>
<ul>
<li>Tweaking svnserve.conf</li>
</ul>
<p>Open up and edit the svnserve.conf file located in the $HOME/my-repo/conf/ directory.</p>
<p>Sample $HOME/my-repo/conf/svnserve.conf</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>[general]
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span># Path to the file containing svn users and passwords.
</span></span><span style="display:flex;"><span>password-db = $HOME/my-repo/conf/passwd
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span># Authentication realm of the repository. Two repositories using the
</span></span><span style="display:flex;"><span># same password-db should have the same realm.
</span></span><span style="display:flex;"><span>realm = My-test-repository
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span># Deny all anonymous access
</span></span><span style="display:flex;"><span>anon-access = none
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span># Grant authenticated users read and write privileges
</span></span><span style="display:flex;"><span>auth-access = write
</span></span></code></pre></div><ul>
<li>Setting up password authentication</li>
</ul>
<p>Open up and edit the password-db file (ie. $HOME/my-repo/conf/passwd). A sample entry might look like this:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>[users]
</span></span><span style="display:flex;"><span>user1 = password1
</span></span><span style="display:flex;"><span>user2 = password2
</span></span></code></pre></div><ul>
<li>Starting up the server</li>
</ul>
<p>Run the server by invoking svnserve with the -d switch (daemon mode) and &ndash;listen-host 1.2.3.4 (substituting 1.2.3.4 for your v-host IP address).</p>
<p><code># svnserve -d --listen-host 1.2.3.4 -r $HOME/my-repo</code></p>
<p>To ensure that your svnserve gets started whenever the server is booted, you must add a @reboot line to your crontab. Use the crontab -e command to bring up your crontab in your favorite text editor and add the following line:</p>
<p><code>@reboot svnserve -d --listen-host 1.2.3.4 -r $HOME/my-repo</code></p>
<ul>
<li>Testing the server</li>
</ul>
<p>To test the server&rsquo;s functionality, you can create a working copy of your repository using your shell. The checkout command will create a working copy of the repository:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span># svn co svn://your-domain.com/$HOME/my-repo my-working-dir
</span></span><span style="display:flex;"><span># cd my-working-dir
</span></span><span style="display:flex;"><span># echo &#34;foo bar&#34; test-file
</span></span><span style="display:flex;"><span># svn add test-file
</span></span><span style="display:flex;"><span># svn remove test-file
</span></span><span style="display:flex;"><span># svn commit
</span></span></code></pre></div>]]></content:encoded>
    </item>
  </channel>
</rss>
