How to configure SUBVERSION of SVN server in CENTOS

Source: Internet
Author: User


Configuration is a little complicated, but it is not very difficult, mainly involves several configuration files.
Let's take a look at the subversion configuration file.

1. svnserve. conf

This is the configuration file for each version Library.
The directory is located in the conf directory of each database. The directory structure is as follows.

Repository-path/conf/svnserve. conf

Through man svnserve. conf, I created the following conf file for your reference.


[General]

# Set the permissions of unauthorized users. none has no permissions. read-only and write reads and writes. The default value is read-only. You can set it according to your own situation.
# Anon-access = none | read | write
Anon-access = none
 
# Set the permissions of authorized users. The default permission is read/write.
# Auth-access = none | read | write
Auth-access = write
 
# Set the user database (authentication). This file can be a path relative to the conf Directory, ensuring that each version database has independent authentication and authorization.

Password-db = passwd. conf

# If multiple projects use the same authentication authorization, it is recommended to put it in a separate directory.
# Password-db =/etc/subversion/passwd. conf
 
# Set the authorization File (authorization) to store the same authentication file. It mainly controls the user's access permissions to various paths in the version Library.

Authz-db = auth. conf
 
# Set realm. If multiple version libraries use the same authentication file, set realm to the same name to ensure that the client uses the cache for authentication. The default realm uses the UUID of the version Library.
Realm = qiansw.com
2. password-db
Password-db is a user-authenticated database file. It is used to authenticate the user's right to log on to the database. The file storage location is set in svnserve. conf.


[Users]
# Username = password
Joeuser = joepassword
Jayrandom = randomjay

3. authz-db

Authz-db is a database file authorized by the user, which is used to control the permissions of logged on to each directory. The file storage location is set in svnserve. conf.
First, you should understand the meaning of rwx.
Then you can create the file.
In Linux, rwx is as follows:
R is the read permission;
W is the write permission;
X is the execution permission for the file, and the permission for accessing the Directory for the directory.
If you know this, you can modify the example file authz in the conf directory.

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.