{"id":21974553,"url":"https://github.com/francescodisalesgithub/gitlab-password-reset","last_synced_at":"2025-03-22T23:40:54.849Z","repository":{"id":194843411,"uuid":"691704525","full_name":"FrancescoDiSalesGithub/Gitlab-password-reset","owner":"FrancescoDiSalesGithub","description":"operation for resetting gitlab root password","archived":false,"fork":false,"pushed_at":"2023-09-14T18:07:22.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T03:19:34.591Z","etag":null,"topics":["devops","gitlab","hacking","password","password-reset","recover","recovery","security","stress"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FrancescoDiSalesGithub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-14T17:59:40.000Z","updated_at":"2024-04-25T07:07:12.000Z","dependencies_parsed_at":"2023-09-15T11:22:14.745Z","dependency_job_id":null,"html_url":"https://github.com/FrancescoDiSalesGithub/Gitlab-password-reset","commit_stats":null,"previous_names":["francescodisalesgithub/gitlab-password-reset"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoDiSalesGithub%2FGitlab-password-reset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoDiSalesGithub%2FGitlab-password-reset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoDiSalesGithub%2FGitlab-password-reset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoDiSalesGithub%2FGitlab-password-reset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FrancescoDiSalesGithub","download_url":"https://codeload.github.com/FrancescoDiSalesGithub/Gitlab-password-reset/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245036127,"owners_count":20550662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devops","gitlab","hacking","password","password-reset","recover","recovery","security","stress"],"created_at":"2024-11-29T15:46:08.931Z","updated_at":"2025-03-22T23:40:54.827Z","avatar_url":"https://github.com/FrancescoDiSalesGithub.png","language":null,"readme":"# Gitlab-password-reset\noperation for resetting gitlab root password\n\n# How to reset root password in gitlab\n\nConsidering that the user is logged in as root user, run **gitlab-rails**:\n```\n\ngitlab-rails console\n\n```\nWait until gitlab-rails gives you informations about the gitlab instance. Then run the following snippet:\n```\nuser = User.where(id: 1).first\nuser.password = 'new_password'\nuser.password_confirmation = 'new_password'\nuser.save\nexit\n```\n\nThen restart the gitlab service:\n```\nsudo gitlab-ctl restart\n```\n\nWait for gitlab to restart its component and then go to the gitlab login page. and write the following credentials:\n```\nroot:new_password\n```\n\nIf the steps are correct you should login with the password that was inserted in the gitlab-rails console.\n\n# Donation\nIf you have found this guide interesting please donate me some monero coins at:\n```\n4B9WQivaHfd3miDfPKEfCianocGpBx9d8FXycz2vmNW3aBDVKHgkBd9Gmapt4RBVEpTwnehujsiUBBehUiLvnEHs7VFstCC\n```\nIf you can't donate me monero coins, you can still apply to the academy hack the box website here:\n```\nhttps://referral.hackthebox.com/mzwyliz\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescodisalesgithub%2Fgitlab-password-reset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancescodisalesgithub%2Fgitlab-password-reset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescodisalesgithub%2Fgitlab-password-reset/lists"}