1. Installation Package sudoapt-getinstallsubversion2. Add svn management user and subversion group sudoaddusersvnusersudoaddgroupsubversionsudoaddgroupsvnusersubversion multi-version library configuration as follows, there are 2 versions of oa and interactive create version library directory/var/svndata/cod
1. Installation Package
Sudo apt-get install subversion
2. Add svn management users and subversion groups
Sudo adduser svnuser
Sudo addgroup subversion
Sudo addgroup svnusersubversion
The multi-version library configuration is as follows: there are two versions of oa and interactive
Create a version library directory/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