Sunday, May 10, 2020

How To Reset Change Admin Password of GitLab On Ubuntu 18

Video Tutorial -

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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

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@example.com')
user.password = 'secret_pass'
user.password_confirmation = 'secret_pass'
user.save!

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment