Recently studied the Cent OS configuration on the SVN service and version library permissions settings, below is my configuration notes
#安装SVN
Yum-y Install Subversion
#测试SVN是否已经安装好
Svn
#创建svn版本库文件夹
mkdir/var/local/svn/
# Edit from System boot file
Vi/etc/rc.local
Move the cursor to a blank line with the arrow keys
Press I to enter the following statement
(If there is no blank line, put the cursor on any line press O)
Svnserve-d-r/var/local/svn/
Press ESC, and then enter: Wq Save exit
Start the SVN service
Svnserve-d-r/var/local/svn/
= = = Create Version Library = = =
#创建新版本库test
Svnadmin Create/var/local/svn/test
==================
= = Configure Version Library permissions = =
# into the version Library profile directory
Cd/var/local/svn/test/conf
Edit Basic Permission File
VI svnserve.conf
Input:%d a empty file contents
Then press I into edit mode, enter
[General]
Password-db = passwd
Anon-access = None
auth-access = Write
Authz-db = Authz
Press ESC ENTER: Wq Save and exit editor
Configuring Users and Passwords
VI passwd
Press I into edit mode enter the username and password in the following format
[Users]
User name = password
For example:
[Users]
echo = 123456
Peter = 8888888
Colt = 7788414
Press ESC ENTER: Wq Save and exit editor
Configuring User access rights
VI Authz
Enter group information according to the following template
[Groups]
Group name = user name, user name ...
Example
[Groups]
Manager = Echo
Developer = Colt, Echo
Client = Peter
Version Library path and permission settings
Format
[Version Library name: Repository Internal folder path]
@ Group name = Read and Write permission (R read, W write, rw read-write)
* = R (Global read and Write permissions)
For example, version Coogan directory
[test:/]
@manager = RW
@developer = RW
* = R
For example, user feedback directory
[Test:/feedback]
@client = RW
* = R
After editing, all the contents of the file should read as follows:
[Groups]
Manager = Echo
Developer = Colt, Echo
Client = Peter
[test:/]
@manager = RW
@developer = RW
* = R
[Test:/feedback]
@client = RW
* = R
Press ESC when finished editing: Wq Save and exit editor
Client Checkout SVN version library address
svn://Server IP Address: 3690/Version Library name
For example
Svn://192.168.1.1:3690/test