When Gitlab it’s installed, the first access to the site allows you to define the password for the root (administrative) account.
But due to a bug/error when I installed it on Debian testing (Stretch) i always git the standard registration box, not for root.
Googling, i found i was not the only one bitten by the bug/error.
I was decided to test it on a Debian VM so here it’s what I have did:
- Enter the rails console:
sudo -u gitlab -H bundle exec rails console production
- Create root user on rails:
user = User.create!(:email=>'root@gitlab.home',:username=>'root',:password=>'x', :password_confirmation=>'x', :name=>'root')
user = User.where(name: 'root').first
user.update_attribute :admin, true
user.save
- Restart gitlab
service gitlab restart
And it’s done. Now login in Gitlab and you can access as root.
Leave a Reply
You must be logged in to post a comment.