SVN简单管理

1 启动SVN

svnserve -d -r /u01/svn/repository/test/

2 为了批量添加用户写了个脚本:

bash_add_svn_usrs.sh

IFS=","
lists=$1
pass=123
for key in $lists
do
  /usr/local/apache2/bin/htpasswd -b /u01/svn/repository/authfile  $key $key$pass
done
unset IFS

 输入的以逗号间隔的用户名字符串,密码是读取了用户名后加123后缀。

./bash_add_svn_usrs.sh sslaowan,ssxiaowan

3 限定用户可访问的svn目录:

 修改/u01/svn/repository/authz.conf

fe=sslaowan,ssxiaowan

compile=hudson

扫描二维码关注公众号,回复: 377412 查看本文章

[/]

@compile=r

[test:/Fission/NotificationApp] 

@fe=wr

猜你喜欢

转载自sslaowan.iteye.com/blog/1545134