Permission group management for multiple projects on the svn Server

Source: Internet
Author: User

1. Create two code repositories

CD/home/SVN
Svnadmin create project1
Svnadmin create project2

2. Copy the authz passwd files to the svn folder.

CP authz passwd/home/SVN

3. Modify the svnserve. conf file under project1 and project2.

VI svnserve. conf

To:
Anon-access = NONE // prohibit Anonymous Access
Auth-access = write
Password-DB =/home/SVN/passwd // use the password file in a unified manner
Authz-DB =/home/SVN/authz
Realm = project1 // permission domain name. It is very important to write your project name.

 

4. Modify two permission management files

VI passwd
// Username = Password
[Users]
Eg1 = 123

Eg2 = 123

 

VI authz

[Groups] // Group
Admin = eg1, eg2

[Project1: //] // access control of Project 1, which is inaccessible to guest1 and 2
@ Admin = RW
Or
Eg1 = RW
Eg2 = RW
[Project2:/]
@Admin= RW

 

5. Restart
Svnserve-d-r/home/SVN

Stop command
Killall svnserve

Permission group management for multiple projects on the svn Server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.