Ubuntu 10.10配置SVN多版本库


1.安装包

sudo apt-get install subversion

2.添加svn管理用户及subversion组

sudo adduser svnuser

sudo addgroup subversion

sudo addgroup svnusersubversion

多版本库配置如下,有2个版本oa和interactive

创建版本库目录/var/svndata/codeauto/

在/var/svndata/目录下运行如下命令

sudo svnadmin create oa

sudo svnadmin create interactive

修改目录权限

sudo chown -R svnuser:subversion /var/svndata/oa/

sudo chown -R svnuser:subversion /var/svndata/interactive/

把oa和interactive中的passwd和authz删除,并且COPY一份到/var/svndata/codeauto/目录

svnserve.conf配置如下

  1. ### This file controls the configuration of the svnserve daemon, if you  
  2. ### use it to allow access to this repository.  (If you only allow  
  3. ### access through http: and/or file: URLs, then this file is  
  4. ### irrelevant.)  
  5. ### Visit http://subversion.tigris.org/ for more information.   
  6. [general]  
  7. ### These options control access to the repository for unauthenticated  
  8. ### and authenticated users.  Valid values are "write", "read",  
  9. ### and "none".  The sample settings below are the defaults.   
  10. anon-access = read  
  11. auth-access = write  
  12. ### The password-db option controls the location of the password  
  13. ### database file.  Unless you specify a path starting with a /,  
  14. ### the file's location is relative to the directory containing  
  15. ### this configuration file.  
  16. ### If SASL is enabled (see below), this file will NOT be used.  
  17. ### Uncomment the line below to use the default password file.   
  18. password-db = passwd  
  19. ### The authz-db option controls the location of the authorization  
  20. ### rules for path-based access control.  Unless you specify a path  
  21. ### starting with a /, the file's location is relative to the the  
  22. ### directory containing this file.  If you don't specify an  
  23. ### authz-db, no path-based access control is done.  
  24. ### Uncomment the line below to use the default authorization file.   
  25. authz-db = authz  
  26. ### This option specifies the authentication realm of the repository.  
  27. ### If two repositories have the same authentication realm, they should  
  28. ### have the same password database, and vice versa.  The default realm  
  29. ### is repository's uuid.  
  30. # realm = My First Repository   
  31. [sasl]  
  32. ### This option specifies whether you want to use the Cyrus SASL  
  33. ### library for authentication. Default is false.  
  34. ### This section will be ignored if svnserve is not built with Cyrus  
  35. ### SASL support; to check, run 'svnserve --version' and look for a line  
  36. ### reading 'Cyrus SASL authentication is available.'  
  37. # use-sasl = true  
  38. ### These options specify the desired strength of the security layer  
  39. ### that you want SASL to provide. 0 means no encryption, 1 means  
  40. ### integrity-checking only, values larger than 1 are correlated  
  41. ### to the effective key length for encryption (e.g. 128 means 128-bit  
  42. ### encryption). The values below are the defaults.  
  43. # min-encryption = 0  
  44. # max-encryption = 256  
  • 1
  • 2
  • 下一页

相关内容