-
安装svn
- mkdir -p /export/server/svn/repos/projects
- svnadmin create /export/server/svn/repos/projects/
- cd /export/server/svn/repos/projects/conf
- 添加用户: vim passwd
[users]
harry = harryssecret
sally = sallyssecret
niewj = xxxxxx
test = test
- 增加权限: vim authz
18 [aliases]
19 # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institut e/CN=Joe Average
20
21 [groups]
22 # harry_and_sally = harry,sally
23 # harry_sally_and_joe = harry,sally,&joe
24
25 # [/foo/bar]
26 # harry = rw
27 # &joe = r
28 # * =
29
30 # [repository:/baz/fuz]
31 # @harry_and_sally = rw
32 # * = r
33 [projects:/]
34 niewj = rw
35 test = r
- 配置svn权限: vim svnserve.conf
8 [general]
9 ### These options control access to the repository for unauthenticated
10 ### and authenticated users. Valid values are "write", "read",
11 ### and "none". The sample settings below are the defaults.
12 anon-access = none
13 auth-access = write
14 password-db = passwd
15 authz-db = authz
- 启动svnserve : 注意:不到projects下
svnserve -d -r /export/server/svn/repos/
网友评论