Skip to main content

svn 설정

bitnami로 레드마인을 설치하게 되면 아래 경로에 svn 폴더가 설치된다.
/home/{user}/redmineplusagile-3.2.0-1/subversion
아래 경로를 이동한다
cd /home/{user}/redmineplusagile-3.2.0-1/subversion/bin

svn 시작

cd /home/{user}/redmineplusagile-3.2.0-1/subversion/scripts
./ctl.sh start

svn 종료

cd /home/{user}/redmineplusagile-3.2.0-1/subversion/scripts
./ctl.sh stop

프로젝트 생성하기

svnadmin create /home/{user}/redmineplusagile-3.2.0-1/subversion/snv/{폴더이름}

svn 폴더 설정하기

cd /home/{user}/redmineplusagile-3.2.0-1/subversion/svn/test/conf
vi svnserve.conf
[general]
anon-access = none -> 익명의 사용자 접근 금지
anon-access = read
auth-access = write
password-db = passwd

사용자 추가 하기

[users]
user1= 111
user2 = 222
user3 = 333

권한 상세 설정하기

권한에는 groups을 지정해주어야 하며
경로에 따른 그룹이나 사용자의 권한을 지정해주면 됩니다.
그룹을 지정하고 하는 경우는 앞에 @를 추가하며
사용자의 경우는
svnserve.conf 여기의 파일에 # authz-db = authz 주석을 푼다
[groups]
allaccess = user1, user2
someaccess = user3
[/]
@allaccess = rw
[hello:/view]
@someaccess = r
  • = r
example
# User defined in group
[groups]
admin = boss, sysadmin
phpteam = php1, php2, php3
rubyteam = ruby1, ruby2

# SVN root should only be access by boss and system admin
[/]
@admin = rw
* =

# Main web repository should only be access by boss and system admin, others cannot read/write at all
# By specifying svn path, we need to list which user/group who can and cannot access
[/web]
@admin = rw
* =

# PHP project repository can only be access by php developer, boss and sys admin
# By specifying svnrep: directive, we just need to list which user/group who can access
# Others will automatically rejected
[svnrep:/web/php]
@phpteam = rw
@admin = rw

# Ruby project repository can only be access by Ruby developer, boss and sys admin
# By specifying svnrep: directive, we just need to list which user/group who can access
# Others will automatically rejected
[svnrep:/web/ruby]
@rubyteam = rw
@admin = rw

Comments

Popular posts from this blog

codefights smooth sailing ( CommonCharacterCount)

https://codefights.com/arcade/intro/level-3/JKKuHJknZNj4YGL32publicstaticintcommonCharacterCount(String s1, String s2) { int sum = 0; char[] as= s1.toCharArray(); char[] bs= s2.toCharArray(); int[] ias = newint[126]; int[] ibs = newint[126]; for (int i = 0; i < as.length; i++) { ias[(int)as[i]]++; } for (int i = 0; i < bs.length; i++) { ibs[(int)bs[i]]++; } for (int i = 0; i < ibs.length; i++) { sum += Math.min(ias[i], ibs[i]); } return sum; }

Given two strings, find the number of common characters between them. Example For s1 = "aabcc" and s2 = "adcaa", the output should be
commonCharacterCount(s1, s2) = 3. Strings have 3 common characters - 2 "a"s and 1 "c". Input/Output [time limit] 3000ms (java)[input] string s1 A string consisting of lowercase latin letters a-z. Guaranteed constraints:
1 ≤ s1.length ≤ 15. [input] string s2 A string consisting of lowercase latin letters a-z. Guaranteed constr…

Bucket Sort in python

I make buckets as many as size of arr
and put data.

arr = [0.897, 0.565, 0.656, 0.1234, 0.665, 0.3434] def bucketSort(arr, size): buckets = [[] for i in range(size)] # put arr in bucket for i in range(len(arr)): num = size*arr[i] buckets[int(num)].append(arr[i]) output = [] # use insertion sort for i in range(len(buckets)): insertionSort(buckets[i]) # concat all data for i in range(len(buckets)): while len(buckets[i]) > 0: output.append(buckets[i].pop(0)) return output def swap(arr, i, j): temp = arr[i] arr[i] = arr[j] arr[j] = temp def insertionSort(arr): for i in range(1, len(arr)): index= i print("index : " + str(i)) while index!=0: if arr[index] < arr[index-1]: temp = arr[index] arr[index]= arr[index-1] arr[index-1] = temp index = index-1print(arr) else …