SVN简单管理
1 启动SVN
svnserve-d -r /u01/svn/repository/test/
2 为了批量添加用户写了个脚本:
bash_add_svn_usrs.sh
IFS=","lists=$1pass=123for key in $listsdo /usr/local/apache2/bin/htpasswd -b /u01/svn/repository/authfile $key $key$passdoneunset IFS
?输入的以逗号间隔的用户名字符串,密码是读取了用户名后加123后缀。
./bash_add_svn_usrs.sh sslaowan,ssxiaowan
?
3 限定用户可访问的svn目录:
?修改/u01/svn/repository/authz.conf
fe=sslaowan,ssxiaowan
compile=hudson
[/]
@compile=r
[test:/Fission/NotificationApp]?
@fe=wr