Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/francescodisalesgithub/gitlab-password-reset
operation for resetting gitlab root password
https://github.com/francescodisalesgithub/gitlab-password-reset
devops gitlab hacking password password-reset recover recovery security stress
Last synced: 29 days ago
JSON representation
operation for resetting gitlab root password
- Host: GitHub
- URL: https://github.com/francescodisalesgithub/gitlab-password-reset
- Owner: FrancescoDiSalesGithub
- License: gpl-3.0
- Created: 2023-09-14T17:59:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-14T18:07:22.000Z (over 1 year ago)
- Last Synced: 2023-09-15T11:12:03.653Z (over 1 year ago)
- Topics: devops, gitlab, hacking, password, password-reset, recover, recovery, security, stress
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gitlab-password-reset
operation for resetting gitlab root password# How to reset root password in gitlab
Considering that the user is logged in as root user, run **gitlab-rails**:
```gitlab-rails console
```
Wait until gitlab-rails gives you informations about the gitlab instance. Then run the following snippet:
```
user = User.where(id: 1).first
user.password = 'new_password'
user.password_confirmation = 'new_password'
user.save
exit
```Then restart the gitlab service:
```
sudo gitlab-ctl restart
```Wait for gitlab to restart its component and then go to the gitlab login page. and write the following credentials:
```
root:new_password
```If the steps are correct you should login with the password that was inserted in the gitlab-rails console.
# Donation
If you have found this guide interesting please donate me some monero coins at:
```
4B9WQivaHfd3miDfPKEfCianocGpBx9d8FXycz2vmNW3aBDVKHgkBd9Gmapt4RBVEpTwnehujsiUBBehUiLvnEHs7VFstCC
```
If you can't donate me monero coins, you can still apply to the academy hack the box website here:
```
https://referral.hackthebox.com/mzwyliz
```