• SVN 权限配置


    修改配置文件 

    [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)

  • 相关阅读:
    CentOS-7 虚拟机意外断电后的数据恢复
    CentOS7 搭建VNC 服务
    CentOS7-ulimit
    CentOS-7 初始化配置
    Centos Bond设置实例
    服务检测脚本
    sshd服务
    input常用属性
    前端工具-Sublime、WebStorm-快捷方式使用
    随机抽选效果、随机抽选红色球
  • 原文地址:https://www.cnblogs.com/fps2tao/p/8672746.html
Copyright © 2020-2023  润新知