fps2tao

修改配置文件 

[root@wentao13 conf]# pwd
/root/svnRepo/test.com/conf
[root@wentao13 conf]# ll
total 12
-rw-r--r--. 1 root root 1080 Mar 29 08:59 authz
-rw-r--r--. 1 root root  309 Mar 29 08:59 passwd
-rw-r--r--. 1 root root 3110 Mar 29 09:27 svnserve.conf
[root@wentao13 conf]# vim svnserve.conf 

去掉:passwork-db=passwd 和 authz-db = zuthz 的注释,保存文件

之后配置 authz 和passwd 文件

1.在passwd里面添加一个wentao的用户

[root@wentao13 conf]# vim passwd 

[users]
# harry = harryssecret
# sally = sallyssecret
wentao = 123456

2.在authz里面添加一个 网站仓库,下面填写我的用户名 和权限分配 

[root@wentao13 conf]# vim authz 

[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
# * =

# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
[test.com:/]
wentao = rw

[test.com:/] 的/表示根目录

然后权限就分配完了,

我们用客户端工具验证下(服务器防火墙记得关哦 systemctl stop firewalld)

 

 

分类:

技术点:

相关文章:

  • 2021-10-09
  • 2022-01-23
  • 2021-11-24
  • 2021-12-30
  • 2021-12-29
  • 2021-12-28
  • 2021-08-16
  • 2022-02-10
猜你喜欢
  • 2021-10-12
  • 2021-12-27
  • 2021-11-08
  • 2021-10-26
  • 2021-11-22
  • 2022-01-01
相关资源
相似解决方案