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