초기 root password 위치
/etc/gitlab/initial_root_password
24시간후?에 사라지는 것으로 알고 있다
gitlab password 초기화 명령어 - gitlab-rake
# root 대신 다른 username을 넣으면 다른 user의 비밀번호 reset도 가능
gitlab-rake 'gitlab:password:reset[root]'
gitlab password 초기화 - gitlab shell
#gitlab shell로 접근
sudo gitlab-rails console -e production
#gitlab root 계정 찾기
user=User.where(id:1).first
#결과문
=> <User id:1 @root>
#root계정 비밀번호 변경 후 저장
user.password='[변경 비밀번호]'
user.password_confirmation='[재확인 변경 비밀번호]'
user.save
#결과문
=> true
#gitlab shell 나가기
exit
'개발일기 > GitLab' 카테고리의 다른 글
[GitLab] gitlab backup, restore (0) | 2023.07.07 |
---|---|
[GitLab] Cloud(Centos)에 gitlab 설치, gitlab 특정버전 설치, gitlab ssl 설정 (0) | 2023.07.06 |
[GitLab] docker에 gitlab restore 하기 (docker gitlab backup, restore) (0) | 2023.07.05 |
[GitLab] docker에 gitlab 설치 - docker gitlab version 검색 (0) | 2023.07.04 |
[git] .gitignore 작성, 적용 (0) | 2023.03.30 |