svn添加账号

1:添加资源文件
写个bat
@echo off
echo 输入资源库名称
set /p repos=
svnadmin create D:\svn\data\repositories\%repos%
echo 资源库 %repos% 已经创建
pause

2:创建用户名,密码
写个bat
@echo off
echo 输入SVN用户名,然后输入两次密码
set /p test= 
htpasswd -m svn_auth_file %test%
echo 用户名%test%的密码已经生成
pause

3:配置资源库--和用户相对应
D:\svn\data\conf
--修改svn_access_file 文件
[groups]
manager = admin,jjq,ccy,clf

[/]
* = r
@manager = rw

[sf:/]
*=
@manager = rw

[torchproduct:/]
*=
@manager = rw
zqs = rw

[travel:/]
*=
@manager = rw
zqs = rw

猜你喜欢

转载自zqs520.iteye.com/blog/2038748