About subversion permission configuration in Linux

Source: Internet
Author: User

Bkjia.com Linux tutorialWhen we install svn in Linux, we will find such a problem. All the svn configuration processes are considered successful. Why is this prompt displayed when we access the client? Authorization failed

In fact, this is a problem with permission configuration. To put it bluntly, the directory is not configured, and you have not accessed the directory. In fact, svn configuration is not very difficult. What is difficult is how you use your clear ideas to understand it. The following describes how I configure it:

When starting a Subversion, pay attention to which directory should be started. This details will directly affect the configuration file authz that you will grant directory permissions.

1. Start: Svnserve-d-r/

In this case, we should:

[Test: //] // you can access all files in the test directory (test is a folder created under the/root directory)

086php = rw // has read and write permissions

? = R // except for the above users, other users only have read permission

The client access should be like this:

IP test example: svn: // 192.168.0.1/test

For example, if you want to access all directories under svn: // 192.168.0.1, you need to update the directories run by svn and authz files. (Test is my repository)

2. Start: Svnserve-d-r/test

Authz file content:

[/]

086php = rw

In this way, you can directly access all the files under the svn: // 192.168.0.1 Directory, which is actually the directory under my repository test.

3. If you want to access a directory under test:

Start: Svnserve-d-r/

Authz:

[Test:/other directories]

086php = rw

The access address will be: svn: // 192.168.0.1/directory.

4. Start: Svnserve-d-r/test

Authz:

[/Other directories, no need to add the test repository name]

086php = r

The access address is changed:

Svnserve: // 192.168.0.1/other directories

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.