SVN 服务器搭建步骤及使用实战(2)

[root@node02  conf]# egrep "\-access|\-db =" svnserve.conf                                                          

anon-access = none

auth-access = write

password-db = /application/svn/svndata/svnpasswd/passwd

authz-db = /application/svn/svndata/svnpasswd/authz

[root@node02  conf]#

确认配置修改无误后,拷贝用户认证文件passwd和权限管理文件authz到刚才创建的目录下:

[root@node02 conf]# cp authz  passwd  /application/svn/svndata/svnpasswd/

[root@node02 conf]# tree /application/svn/svndata/svnpasswd/

/application/svn/svndata/svnpasswd/

├── authz

└── passwd

0 directories, 2 files

[root@node02 conf]# 

(4)创建用户admin、user001并设置密码,格式:用户名 = 密码

[root@node02 svnpasswd]# cat 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

admin = admin

user001 = 123456

[root@node02 svnpasswd]# 

访问权限:

[root@node02 svnpasswd]# cat 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

users = admin,user001

# [/foo/bar]

# harry = rw

# &joe = r

# * =

# [repository:/baz/fuz]

# @harry_and_sally = rw

# * = r

[/]

@users = rw

[root@node02 svnpasswd]# 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/679a668307474be7542bc5e79284d555.html