title: Subversion commands to add new user and grant all permissions
body: <p>Currently, I am not able to commit with the SVN user I added. I tried by manually editing the <code>svnserve.conf</code> and <code>passwd</code> files. I did the following.</p>
  
  <ul>
  <li>Added a line, <code>harry = harrysecret</code>, in <code>passwd</code></li>
  <li>Uncommented the line <code>password-db = passwd</code> in <code>svnserve.conf</code></li>
  <li><p>Added a system user, <code>harry</code>, with password = harrysecret as follows:-</p>
  
  <p>useradd harry
     passwd harry</p></li>
  </ul>
  
  <p>I am using SVN+SSH protocol and am able to checkout, update but, while committing I am getting the error</p>
  
  <pre><code>Commit failed - Can't create directory 'path/to/repository/db/transactions/1852-1.txn' Permission denied
  </code></pre>
  
  <p>But, with <code>root</code> user I am able to commit.</p>
  
  <p>I googled to find commands and found the following.</p>
  
  <pre><code>sudo htpasswd -m /etc/subversion/svn-auth-file sally
  New password: *******
  Re-type new password: *******
  Adding password for user sally
  </code></pre>
  
  <p>(<a href="http://www.divvun.no/doc/infra/system/addsvn-users.html" rel="nofollow noreferrer">http://www.divvun.no/doc/infra/system/addsvn-users.html</a>)</p>
  
  <p>It did not work for me.</p>
  
  <p><a href="http://wiki.site5.com/SVN/Subversion_(SVN)_Setup_Guide#Setup_a_new_SVN_user_account" rel="nofollow noreferrer">http://wiki.site5.com/SVN/Subversion_(SVN)_Setup_Guide#Setup_a_new_SVN_user_account</a></p>
  
  <pre><code>    cd ~
      mkdir .ssh
      chmod 700 .ssh
      touch .ssh/authorized_keys
      chmod 600 .ssh/authorized_keys
  </code></pre>
  
  <p><a href="http://help.joyent.com/index.php?id=55&amp;pg=kb.page" rel="nofollow noreferrer">http://help.joyent.com/index.php?id=55&amp;pg=kb.page</a></p>
  
  <ul>
  <li>cd to the domain’s <code>etc/</code> directory</li>
  <li>with any text editor, edit ‘svn-access.conf’ by adding a
  ‘permission line’ for ‘newuser’ to an
  existing repository (repositories are
  created in webmin)</li>
  <li>add a password for ‘newuser’ to the svn.basic.passwd file with bash$
  htpasswd svn.basic.passwd newuser (it
  will prompt twice for the new
  password)</li>
  </ul>
  
  <p>But, I do not have svn-access.conf in the <code>/etc</code> directory.</p>
  
  <p>Are there sure shot ways to add users with all permissions? I need to instruct someone to do the same on a remote server.</p>