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