Configuring SVN on Amazon EC2 - User authentication is not required

3

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

I followed the instructions in the Bitnami wiki but could not finish the setup process. When accessing my repository by the browser or even by TortoiseSVN you are not prompted for a username and password to access it.

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 I've done so far:

  • I created the repository:

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

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

    [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 excerpt to the apache configuration file:

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

    /opt/bitnami/apache2/bin/htpasswd -c  /home/bitnami/repositorio/users newuser
    
  • 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 any configuration steps? I'm following the directions on this page: link .

Another question in Linux is it normal for SVN to create a repository without the /trunk /branches and /tags structure? On Windows when I installed it was created automatically, so I do not know if this is normal or another indication that my installation is incorrect.

    
asked by anonymous 12.02.2015 / 19:14

1 answer

1

I know almost nothing of this configuration, but looking at the line:

  

anon-access = read

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

Try removing this setting or leaving it blank.

    
12.02.2015 / 20:15