SVN server Configuration Combat

Source: Internet
Author: User

Needs

established for multiple departments of the company SVN Warehouse Compay

Company Department and personnel composition

Department A (zhangsan,lisi,wanger,mazi)

Department B (jia,yi,bing,ding)

Department of C (chun,xia,qiu,dong)

Department D (Zhong,xi, He,bi)

General Manager Sam

Lucy, Secretary

Directory of department a Departa

Directory of Department B DEPARTB

Directory of the C department DEPARTC

Catalog of Department D DEPARTD

Temp directory

Project directory

Doc Directory

All directories cannot be accessed anonymously

General Manager has read and write access to all directories

The secretary has read access to all directories

Departa Read access to other department members read and Write access to a department member

Departa directory dira is unreadable to other department members and has read and write access to members of department a

Departa Read permission to members of the other department to read and write permission to members of department B

Departa under directory DIRB for other department members, have read and write access to B Department members

DEPARTB Read permission to members of the other department to read and write permission to members of department B

DEPARTB under directory DIRB for other department members, have read and write access to B Department members

REPARTC Read permission to members of the other department to read and write permission to members of department B

REPARTC under directory dirc for other department members, have read and write access to C Department members

REPARTD Read permission to members of the other department to read and write permission to members of department B

REPARTD directory Dird is unreadable to other department members and has read and write access to D Department members

Right read and Write permissions for all department members in the project directory

Temp directory All Department members, secretaries have right to read and write permissions

Doc Directory, the secretary has read and write access to it, and the members of the Department have access to it

[Operation Steps]

1. Building a code Warehouse

In the server ~\documents\svnserver directory, build the company code base, with the following command:

Svnadmin Create ~\documents\svnserver\company

2. Modify the conf/svnserv.conf file

Password-db = passwd.conf

Anon-access = None

auth-access = Write

Authz-db = authz.conf

3. Add a user account

[Users]

Zhangsan = Zhangsan

Lisi = Lisi

Wanger = Wanger

Mazi = Mazi

Jia = Jia

Yi = Yi

Bing = Bing

Ding = Ding

Chun = Chun

Xia = Xia

Qiu = Qiu

Dong = Dong

Zhong = Zhong

Xi = XI

he = He

BI = Bi

Sam = Sam

Lucy = Lucy

~

5. Modify the Authz file

[Groups]

Groupa = Zhangsan,lisi,wanger,mazi

GroupB = jia,yi,bing,ding

GROUPC = Chun,xia,qiu,dong

GROUPD = Zhong,xi,he,bi

[company:/]

Sam = WR

* = R

[Company:/departa]

@groupA = WR

* = R

[Company:/departa/dira]

@groupA = WR

* =

[COMPANY:/DEPARTB]

GroupB = WR

* = R

[COMPANY:/DEPARTB/DIRB]

@groupB = WR

* =

[COMPANY:/DEPARTC]

GROUPC = WR

* = R

[COMPANY:/DEPARTC/DIRC]

@groupC = WR

* =

[COMPANY:/DEPARTD]

GROUPD = WR

* = R

[Company:/departd/dird]

@groupD = WR

* =

[Company:/temp]

* = WR

[Company:/project]

* = WR

Lucy = R

[Company:/doc]

Lucy = WR

6. In the client desktop directory, set up the above directory structure

DESKTOP:JACKIEHOO>SVN import ~/desktop/company svn://192.168.0.1/company with command

7. Testing

(Pending completion)

Reference Document: Http://www.cnblogs.com/wuhenke/archive/2011/09/21/2184127.html

SVN server Configuration Combat

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.