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.