Adding new project & Adding New users to SVN Server

Creating new projects in the SVN

Assuming that we have already SVN repository, if not you can create using this link here.

Change to the repository directory

cd /var/www/svn

Create the repository with svnadmin command

# svnadmin create new_porject_name

edit the svn access control file to give access to the project

[groups]
new_project_group_name = user1, user2

[new_project_name:/]
@new_project_group_name=rw
@userx = rw


Now give change the owner ship of the folder to apache user and group so that it can be accessed from browsers and svn

# chown -R apache.apache  new_porject_name

Now import the initial folders to the project [brancks,tags,trunk] folders to the new project

# svn import -m 'Initial import' /tmp/svn-structure/ http://192.168.1.84:808/svn/ new_porject_name
Now edit the svnserve.conf file so that to remove the anonymous access to the project and provide access to the authorized users

vi new_porject_name /conf/svnserve.conf

## Disable anonymous access ##
anon-access = none

## Enable access control ##
authz-db = authz

Now your project is created and can be access from http://your-ip-address/svn/new_project_name

Adding new user to SVN repository

# htpasswd -m /etc/svn-auth-users testuser2

New password:
Re-type new password:
Adding password for user testuser2

Add the users to svn access control configuration file

[groups]
new_project_group_name = user1, user2, testuser2

[new_project_name:/]
@new_project_group_name=rw
@testuser2 = rw





Other Related links: 




Keywords: Subversion, SVN, SVN Server, Adding Users on SVN Server, Backup SVN, Restore SVN.

Comments

Popular posts from this blog

Observium: Configuring Microsoft Windows 2008 Server SNMP Agent

AWS: Upgrade PV Drivers on Windows Instances

How to configure Incremental backups for MSSQL Database