Monday, 10 July 2017

Security Management in Subversion

Subversion provides the management of user, group and permissions. They are two files authz and passwd in svn/repos/<repository_name>/conf. In the passwd file you need to add some usernames and passwords. Instead the authz file manages the groups and permissions.

How to add a new user

Edit the passwd file and append a new user with password under [users] section.
Example: 
Add a new user with "newuser" as username and "passw0rd@" as password.
[users]
myuser=password!
newuser=passw0rd@

How to assign an user to a group

Edit authz file and update the [groups] section.
Example:
Add newuser in "developers" group.
[groups]
guests = myuser
developers = myuser

How to assign the grants to a group

The grants are configurated in authz file, the path into repo is enclosed in square brackets.
For example, we want to give read permissions to guests group and write and read to developers groups then you can use the following configuration:
[/myrepo]
@guests = r
[/myrepo]
@developers = rw

As just shown is just the basic management indicated for a small repository. Fortunately, for managing large repositories, various security management tools are available as "SVN Access Manager".

No comments:

Post a Comment

Welcome

Hello everybody, Welcome in my blog called "Information technology archive". Obviously the topics will be related to Informatio...