Tuesday, October 6, 2009

Create new SVN Repository

  Login into host.domain.org with root user credentials

  1. cd  /export/repositories/
  2. create new repository using the command "svnadmin create "
  3. cd  /etc/svn-auth/
  4. create authentication file for repository with first user using the command "htpasswd –cm svn-auth-file- "
  5. Enter the password for the username
  6. cd  /etc/httpd/svn/
  7. Create the apache .conf file for the repository in the /etc/httpd/svn/ folder with the following contents

    Server Name
    host.domain.org

    DAV svn
    SVNPath /export/repositories/
    AuthType Basic
    AuthName " Repository –host.domain.org "
    AuthUserFile /etc/svn-auth/svn-auth-file-<repo name>
    Require valid-user

  8. Restart the apache server using the command "/etc/init.d/httpd restart"
User management in the repository

  1. Login into the host.domain.org server using the root credentials.
  2. Goto the repository auth file folder using the command " cd /etc/svn-auth/"
  3. To create new user "htpasswd –m svn-auth-file- " and then give the password.
  4. To delete the user use the following command "htpasswd –D svn-auth-file- ''username"
  5. To change the user's password, use the following command "htpasswd –m svn-auth-file- " and then give the new password.
  6. To view the users in the SVN account,use the following command ''more svn-auth-file-reponame

No comments:

Post a Comment