How To Reset Change Admin Password of GitLab
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GitLab is an open source repository manager based on Rails developed by GitLab Inc.
Offcial Website -https://docs.gitlab.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ubuntu 18.04.4 LTS bionic Hostname - www.yourdomain.com - ip Address - 192.168.1.40
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GitLab Docs - https://docs.gitlab.com/ee/security/reset_root_password.html
Default gitlab Username - root
gitlab-rails console -e production
user = User.where(id:1).first
user.password = 'secret_pass'
user.password_confirmation = 'secret_pass'
user.save!
None Root User GitLab Password Reset -
gitlab-rails console -e production
user = User.find_by(email: 'admin@yourdomain.com')
user.password = 'secret_pass'
user.password_confirmation = 'secret_pass'
user.save!
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment