星期六, 6月 13, 2009

SVN小記

SVN Create Repository

> sudo svnadmin create /opt/svn/test

設定檔修改

/opt/svn/test/conf/svnserver.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz

/opt/svn/test/conf/passwd
[users]
admin = admin
user1 = user1
user2 = user2
test = test

/opt/svn/test/conf/authz
[groups]
Admin = admin
User = user1, user2
Test = test1

[/]
@Admin = rw
@User = r

[/web]
#讓@Test只能讀寫/web下面的東西
@Admin = rw
@User = r
@Test = rw

沒有留言: