Notes on configuration of Cent OS SVN service in linux

Source: Internet
Author: User

This is a reference for anyone who needs to take notes about configuring Cent OS SVN.

Recently I have studied how to configure SVN service and version library permission settings on Cent OS. Below are my configuration notes.

# Install SVN
Yum-y install subversion
# Test whether SVN has been installed
Svn
# Create a svn repository folder
Mkdir/var/local/svn/
# Editing a Startup File
Vi/etc/rc. local
Move the cursor to a blank line with the direction key
Input the following statement by I
(If there are no blank rows, place the cursor in any row and press o)
Svnserve-d-r/var/local/svn/
Press esc and enter: wq to save and exit.
Start svn Service
Svnserve-d-r/var/local/svn/

=== Create a version library ===
# Create a new version library test
Svnadmin create/var/local/svn/test
============================

= Configure version library permissions =
# Go To The version library configuration file directory
Cd/var/local/svn/test/conf

Edit basic permission File
Vi svnserve. conf
Enter % d a to clear the File Content
Press I to enter the editing mode and enter
[General]
Password-db = passwd
Anon-access = none
Auth-access = write
Authz-db = authz
Press esc and enter wq to save and exit the editor.

Configure the user and password
Vi passwd
Enter the user name and password in edit mode according to the following format:
[Users]
Username = Password
For example:
[Users]
Echo = 1, 123456
Peter = 1, 8888888
Colt = 1, 7788414
Press esc and enter wq to save and exit the editor.

Configure user access permissions
Vi authz
Enter the 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: Path to the internal folder of the version library]
@ Group name = read/write permission (r read, w write, rw read/write)
* = R (Global read/write permission)

For example, the version library root directory
[Test:/]
@ Manager = rw
@ Developer = rw
* = R

For example, user feedback directory
[Test:/feedback]
@ Client = rw
* = R

After editing, all the file content should be as follows:
[Groups]
Manager = echo
Developer = colt, echo
Client = peter
[Test:/]
@ Manager = rw
@ Developer = rw
* = R
[Test:/feedback]
@ Client = rw
* = R

After editing, Press esc and enter: wq to save and exit the editor.

Client checkout svn version library address
Svn: // server IP Address: 3690/version Database Name
For example
Svn: // 192.168.1.1: 3690/test

Related Article

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.