Create new SVN Repository
Login into host.domain.org with root user credentials
- cd /export/repositories/
- create new repository using the command "svnadmin create "
- cd /etc/svn-auth/
- create authentication file for repository with first user using the command "htpasswd –cm svn-auth-file- "
- Enter the password for the username
- cd /etc/httpd/svn/
- 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
- Restart the apache server using the command "/etc/init.d/httpd restart"
User management in the repository
- Login into the host.domain.org server using the root credentials.
- Goto the repository auth file folder using the command " cd /etc/svn-auth/"
- To create new user "htpasswd –m svn-auth-file- " and then give the password.
- To delete the user use the following command "htpasswd –D svn-auth-file- ''username"
- To change the user's password, use the following command "htpasswd –m svn-auth-file- " and then give the new password.
- To view the users in the SVN account,use the following command ''more svn-auth-file-reponame”
No comments:
Post a Comment