linux svn启动失败,linux svn authorization failed错误

找了半天错误原因

authorization failed错误主要是conf/auth文件配置错误,可以参考如下配置:

### 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

admin = u1 //多用户可以使用,隔开 例如 u1,u2,u3

user = u2 //普通用户组

# [/foo/bar]

# harry = rw

# &joe = r

# * =

# [repository:/baz/fuz]

# @harry_and_sally = rw

# * = r

[repos:/]

@admin = rw //设置用户组权限

最后原因为启动svn错误

源地址:http://www.bubuko.com/infodetail-676435.html

注意:

例如你执行了

svnadmin create works 创建了一个works版本库,然后你运行svnserve启动服务的时候 -r参数需要制定works的上一级目录,要不然也会出现

authorization failed错误!

示例路径pwd:/alidata/svn/works

svnserve -d -r /home/svn

这样一来auth文件里的[repos:/]参数才起作用!启动时参数错误

1,启动SVN

sudo svnserve -d -r /home/svn/

其中 -d 表示守护进程, -r 表示在后台执行

/home/svn/ 为svn的安装目录

2,关闭SVN

这里采取linux杀死进程的方式处理的

ps -ef|grep svnserve

root 4967 1 0 Aug23 ? 00:00:00 svnserve -d -r repository/

这里 kill -9 4967杀死进程, 此4967为进程号

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值