linux – Setting up SVN on Amazon EC2 – User authentication is not required


I'm having trouble setting up SVN on an Amazon EC2 server managed by Bitnami. I actually created this machine to use Redmine , but I'm also going to need SVN.

I followed the instructions on the Bitnami wiki but couldn't finish the setup process. When accessing my repository through the browser or even through TortoiseSVN, the username and password are not required to access.

It's more complicated because this server uses Ubuntu Linux 14.04.1 LTS 64-bit , I have no experience with Linux and SVN. What have I done so far:

  • I created the repository:

     svnadmin create /home/bitnami/repositorio
  • I edited the /home/bitnami/repository/svnserve.conf file:

     [general] anon-access = read auth-access = write password-db = passwd
  • Add my username to the passwd file:

     [users] meususario = minhasenha
  • I restarted the service.

  • I imported the project into the repository:

     svn import /home/bitnami/projeto/ http://meudominio.bitnamiapp/repositorio/
  • I added this snippet to the apache configuration file:

     LoadModule dav_module modules/ LoadModule dav_fs_module modules/ LoadModule dav_svn_modulee modules/ LoadModule authz_svn_module modules/ < Location /repositorio > DAV svn SVNPath "/home/bitnami/repositorio/" AuthType Basic AuthName "Subversion repository" AuthUserFile /opt/bitnami/repository/users require valid-user < /Location >
  • I created the users in apache:

     /opt/bitnami/apache2/bin/htpasswd -c /home/bitnami/repositorio/users newuser
  • I enabled commits via HTTP:

     sudo chown -R daemon:subversion /home/bitnami/repositorio

Although I can access the repository, no authentication is required to access my repository. Did I skip some configuration step? I'm following the guidelines on this page: .

Another question, on Linux is it normal for SVN to create a repository without the /trunk /branches and /tags ? On Windows when I installed it was created automatically, so I don't know if this is normal or more a sign that my installation is incorrect.


I know practically nothing about this configuration, but looking at the line:

anon-access = read

From your configuration, I have the impression that you have activated the read mode for anonymous access, that is, without the need for a password.

Try removing this setting or leaving it blank.

Scroll to Top