svn linux的操作相关

①创建一个项目

   进入svn的目录  svnadmin create project //创建项目 project

进入项目里面的config 开始配置相关

svnserve.conf
#anon-access = read        =>    anon-access = none#匿名用户不可任何操作
#auth-access = write       =>    auth-access = write#授权用户写
#password-db = passwd   => #去掉
#authz-db = authz =>#去掉

然后修改 authz passwd 配置文件

标准一个配置passwd

### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.

[users]
# harry = harryssecret
# sally = sallyssecret
rongjun = r123456
wangshangbin = w234567
hujiajun  = h345678
likaidi   = lkd1234
zhangwenyan = zwy369
tianhuannan = thn789
chenhongbo  = chb123
xubao      = xb123
chushouqiang = csq123456

 标准一个配置authz

### 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 to:
###  - 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 with '~'. 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

# [/foo/bar]
# harry = rw
# &joe = r
# * =
[project:/]
wangshangbin = rw
hujiajun  = rw
zhangwenyan = rw
tianhuannan = rw
chenhongbo = rw
chushouqiang = rw
*=
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r

注意上面的project:/ project 需要按照你的实际项目名进行填写(还需要注意的事 xxx-xxx 这样的项目名svn建立会出错)

备注2:小乌龟 的地址都是svn://ip:端口/项目名称这种形式。不要弄错误

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值