FreeKB - Subversion (Version Control) Username and password
Subversion (Version Control) - Username and password

This assume you have already installed Subversion and that you've setup an HTTPD web server for Subversion. When you navigate to your Subversion URL, you will be prompted to provide a username and password. If you've not yet setup a username and password that can be used to authenticate into the Subversion respository, you will get Unauthorized.


By default, subversion.conf file (such as /etc/httpd/conf.modules.d/10-subversion.conf) has "AuthUserFile /etc/svn-auth-users".

Alias /svn /var/www/svn
<Location /svn>
   DAV svn
   SVNParentPath /var/www/svn/
   AuthType Basic
   AuthName "Subversion repositories"
   AuthUserFile /etc/svn-auth-users
   Require valid-user


Create a user that will be allowed access to the repository.

htpasswd -cm /etc/svn-auth-users john.doe


Now, return to, provide the username and password you just created, and you should get the following, which is your repository.


The username and password you provided will be stored in plaintext on the PC. In this example, the username and password would be stored in this file.



Here is an example of what would be in the "random_string" file. If you don't delete the "random_string" file and do not change the username or password, you will then automatically be authenticated into the Subversion repository without having to provide the username and password.

K 8
V 6
K 8
V 6
K 15
V 55
<> Subversion repository
K 8
V 8


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter d3aaf in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |