이 문서는 Bitbucket의 시스템 관리자 계정 분실 시 조치 방법을 위한 가이드를 공유한다.
Bitbucket 시스템 관리자 계정 분실 시 복구 계정 설정 후 접속하여 조치하여야 한다. 해당 작업은 Bitubcket 재기동이 필요하다.
(복구 모드 시에는 Bitbucket을 잠시 사용하지 않는 것을 권장합니다)
1.복구 계정 설정
<Bitbucket installation directory>/bin/_start-webapp.sh 파일 수정
"#JVM_SUPPORT_RECOMMENDED_ARGS=" 부분을 주석(#)을 제거 후 정보 입력 -> JVM_SUPPORT_RECOMMENDED_ARGS=-Datlassian.recovery.password=<패스워드 입력>
- 로그인 계정 : recovery_admin
- 패스 워드<패스워드 입력 값> : admin
# Occasionally Atlassian Support may recommend that you set some specific JVM arguments. # You can use this variable to do that. Simply uncomment the below line and add any required # arguments. Note however, if this environment variable has been set in the environment of the # user running this script, uncommenting the below will override that. # JVM_SUPPORT_RECOMMENDED_ARGS=-Datlassian.recovery.password=admin
2. Bitbucket 재기동
$<Bitbucket installation directory>/bin/stop-bitbucket.sh $<Bitbucket installation directory>/bin/start-bitbucket.sh
3. Bitbucket 웹 접속
접속 시 복구 모드 Alerts 이 나타나며, recovery_admin계정으로 접속
- 로그인 계정 : recovery_admin
- 패스 워드<패스워드 입력 값> : admin
시스템 관리자 계정 생성
- 관리자 계정 접속 → 클릭 → Users 탭 → Create user 클릭 → 계정 생성
시스템 관리자 계정 권한 등록
- 관리자 계정 접속 → 클릭 → Global permmissions 탭 클릭
- 시스템 관리자 권한(System Admin) 을 계정 및 그룹에 권한 부여
4. 복구 계정 사용 완료 후 원복
복구 계정으로 설정 완료 후에는 복구 모드 설정을 이전 설정으로 원복 해야 한다.
JVM_SUPPORT_RECOMMENDED_ARGS 부분을 주석 처리 필요
# Occasionally Atlassian Support may recommend that you set some specific JVM arguments. # You can use this variable to do that. Simply uncomment the below line and add any required # arguments. Note however, if this environment variable has been set in the environment of the # user running this script, uncommenting the below will override that. # #JVM_SUPPORT_RECOMMENDED_ARGS=-Datlassian.recovery.password=admin
Bitbucket 재기동
$<Bitbucket installation directory>/bin/stop-bitbucket.sh $<Bitbucket installation directory>/bin/start-bitbucket.sh