The multi-version library is configured as follows. There are two versions of oa and interactive/var/svndata/codeauto/. Run the following command in the/var/svndata/directory to modify the directory permission sudosvnadmincreateoasudosvnadmincreateinteractive: subversion/var/svndata/oa/su
The multi-version library configuration is as follows: there are two versions of oa and interactive
/Var/svndata/codeauto/
Run the following command in the/var/svndata/directory:
Sudo svnadmin create oa
Sudo svnadmin create interactive
Modify Directory Permissions
Sudo chown-R svnuser: subversion/var/svndata/oa/
Sudo chown-R svnuser: subversion/var/svndata/interactive/
Delete passwd and authz in oa and interactive and COPY them to the/var/svndata/codeauto/directory.
Configure svnserve. conf as follows:
- ### 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.
- Anon-access = read
- Auth-access = write
- ### The password-db option controls the location of the password
- ### Database file. Unless you specify a path starting with /,
- ### 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.
- Password-db = passwd
- ### The authz-db option controls the location of the authorization
- ### Rules for path-based access control. Unless you specify a path
- ### Starting with a/, the file's location is relative to
- ### Directory containing this file. If you don't specify
- ### Authz-db, no path-based access control is done.
- ### Uncomment the line below to use the default authorization file.
- Authz-db = authz
- ### This option specifies the authentication realm of the repository.
- ### If two repositories have the same authentication realm, they shocould
- ### Have the same password database, and vice versa. The default realm
- ### Is repository's uuid.
- # Realm = My First Repository
- [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 .'
- # Use-sasl = true
- ### 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 cipher key length for encryption (e.g. 128 means 128-bit
- ### Encryption). The values below are the defaults.
- # Min-encryption = 0
- # Max-encryption = 256
Authz file configuration
- ### This file is an example authorization file for svnserve.
- ### Its format is identical to that of mod_authz_svn authorization
- ### Files.
- ### As shown below each section defines authorizations for the path and
- ### (Optional) repository specified by the section name.
- ### The authorizations follow. An authorization line can refer:
- ###-A single user,
- ###-A group of users defined in a special [groups] section,
- ###-An alias defined in a special [aliases] section,
- ###-All authenticated users, using the '$ authenticated' token,
- ###-Only anonymous users, using the '$ anonymous' token,
- ###-Anyone, using the '*' wildcard.
- ###
- ### A match can be inverted by prefixing the rule '~ '. Rules can
- ### Grant read ('R') access, read-write ('rw ') access, or no access
- ###('').
- [Aliases]
- # Joe =/C = XZ/ST = Dessert/L = Snake City/O = Snake Oil, Ltd./OU = Research Institute/CN = Joe Average
- [Groups]
- # Harry_and_sally = harry, sally
- # Harry_sally_and_joe = harry, sally, & joe
- Group_admin = huangjianwen
- # [/Foo/bar]
- # Harry = rw
- # & Joe = r
- # * =
- [Game:/]
- Huangjianwen = rw
- * =
- [Oa:/]
- Huangjianwen = rw
- * =
- # [Repository:/baz/fuz]
- # @ Harry_and_sally = rw
- # * = R
The passwd configuration is as follows:
- ### This file is an example password file for svnserve.
- ### Its format is similar to that of svnserve. conf. As shown in
- ### Example below it contains one section labeled [users].
- ### The name and password for each user follow, one account per line.
- [Users]
- # Harry = harryssecret
- # Sally = sallyssecret
- Huangjianwen = hsf-tpadmin