gitlab-rails console -e production 실행하고 나타난 프롬프트에서 다음 내용을 입력합니다.
관리자 id 가 root 에서 변경되지 않은 경우
user = User.where(id: 1).first
관리자 id 가 root 가 아닌데 등록한 이메일 주소를 아는 경우
user = User.find_by(email: 'id@user.mail')
여기까지 성공하면 비밀번호를 변경할 수 있습니다.
user.passworduser.password = 'password'
user.password_confirmation = 'password'
user.save!