Linux cent OS SVN service configuration Learn notes

Source: Internet
Author: User
Tags svn

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

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.