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)

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM