Change Gitlab password

30 Jan 2022 / Oscar F
RaspberryPi with Gitlab logo

There's two alternative ways.

Both alternatives requires terminal or ssh to the server.

Alternative 1

Tested by me on a Raspberry Pi.

gitlab-rails console production
user = User.where(id: 1).first
user.password = 'your secret'
user.password_confirmation = 'your secret'

You can read about how to setup GitLab on a Raspberry Pi here.

Alternative 2

The official docs way.

gitlab-rake "gitlab:password:reset[root]"


Alternative 1:

Alternative 2: