SVN server configuration (easy to understand, with a configuration file, with annotations)
I have set up an SVN server on the server over the past two days. I have some experience and leave it for later use. I am not particularly welcome to criticize and correct it.
In addition, I still don't understand the sub-directory access configuration. I hope some predecessors can teach me how to use it.
1. Install SVN Server
Yum install subversion
2. Verify Installation
Svnserve -- version
3. Create a version Library
Mkdir/repo -- create a repo folder
Svnadmin create/repo/aaa -- create an aaa version
4. Start and kill the service
Svnserve-d-r/repo/aaa
Ps-aux | grep svn
Kill process number
5. Automatic Start
Vi/etc/rc. local
Add
Svnserve-d-r/repo/aaa
Below is the configuration file:
1. svnserve. conf: This is the most detailed one. Note that no space exists before each configuration.
### This file controls the configuration of the svnserve daemon, if you ### use it to allow access to this repository. (If you only allow ### access through http: and/or file: URLs, then this file is ### irrelevant .) ### Visit http://subversion.tigris.org/for more information. [general] ### 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. ### Access Level Control for authorized and unauthorized users: read, write, writeanon-access = readauth-access = write ### The password-db option controls the location of the password ### database file. unless you specify a path starting with a/, ### the file's location is relative to the directory containing ### this configuration file. ### If SASL is enabled (see below), this file will NOT be used. ### Uncomment the line below to use the default password file. ### storage location of the password data file. The default value is relative path. If it starts with/, it is absolute path ### if SASL is enabled, the password-db = passwd ### the authz-db option controls the location of The authorization ### rules for path-based access control will not be verified. unless you specify a path ### starting with a/, the file's location is relative to the ### directory containing this file. if you don't specify an ### authz-db, no path-based access control is done. ### Uncomment the line below to use the default authorization file. ### storage location of user data files. The default path is relative path. If it starts with/, it is absolute path ### if no path is specified, then there is no access control authz-db = authz ### This option specifies the authentication realm of the repository. ### If two repositories have the same authentication realm, they shoshould ### have the same password database, and vice versa. the default realm ### is repository's uuid. ### specify the verification range. If the realm attributes of two repo are the same, they should use the same password database, and vice versa ### the default realm is the repo's unique identifier realm = 0.1 [sasl] ### This option specifies whether you want to use the Cyrus SASL ### library for authentication. default is false. ### This section will be ignored if svnserve is not built with Cyrus ### SASL support; to check, run 'svnserve -- version' and look for a line ### reading 'cyrus SASL authentication is available. #### whether to enable SASL verification. The default value is false ### the svn server supports Cyrus by default. The check method is to run the 'svnserve -- version' command, check whether the output contains 'cyrus SASL authentication is available. '# use-sasl = false ### These options specify the desired strength of the security layer ### that you want SASL to provide. 0 means no encryption, 1 means ### integrity-checking only, values larger than 1 are correlated ### to the valid key length for encryption (e.g. 128 means 128-bit ### encryption ). the values below are the defaults. ### the following two options are used to specify the encryption strength # min-encryption = 0 # max-encryption = 256
2. passwd: configure the user in the format of --> username = passwd.
[users]tang = linalin = tang
3. authz
### Configure a group. The username [groups] g_manager = tang of the members in the group is displayed on the right, alin ### svn root directory ### Configure permissions for the group [/] @ g_manager = rw