I. Problem Description
Today, we need to set SVN permissions in detail. As a result, a problem occurs when my colleagues update their files using the assigned permissions (as shown below ):
2. explore solutions
1. Preliminary Analysis
Search for information on the Internet and analyze the svnserve. conf file. If there is information on the Internet, change "Anon-access = read" to "Anon-access = none ". Check your svnserve. conf file. In fact, I have set it to "Anon-access = none. But cannot be updated.
2. In-depth consideration
View the notes attached to the svnserve. conf file:
### These options control access to the repository for Unauthenticated
### And authenticated users. valid values are "write", "read", ### and "NONE ". the sample settings below are the defaults. # anon-access = read # auth-access = write is originally like this: Anon-access = read --> indicates the anonymous access permission, which is read-only. Auth-access = write --> indicates to authenticate the user's access permission, which is writable. Check your authz file and find that, although you have assigned the read and write permissions to the specified directory to your colleague's account, you have not set the permission for the parent directory of the specified directory for this account. In this way, by default, this account does not have the permission to access the upper-level directory of the specified directory. Therefore, the permissions set in this way are in conflict. 3. Solution: (1) set the default access permission to read-only (Anon-access = read ), in this way, all users can access the configuration library directory. The disadvantage is that the security of the configuration library is reduced, so select the second method. (2) Assign read-only permissions to the account so that the account has read-only permissions on the parent directory of the specified directory. Iii. Summarize and use the second method to solve the problem. When you discover problems when using SVN, you still need to check the description of the files in SVN. This will be of great help and a prompt from these developers, in our development process, you must write comments or instructions in detail.