Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

GitLab reset password

sudo gitlab-rake 'gitlab:password:reset[<username>]'
//example for user roor
sudo gitlab-rake 'gitlab:password:reset[root]'
//For docker container first enter container like:
sudo docker exec -it <containerID> bash
Comment

lost password gitlab

$> # On self-managed instances, replace gitlab.com in the command above with the GitLab server hostname (gitlab.example.com).
$> ssh git@gitlab.com 2fa_recovery_codes
Are you sure you want to generate new two-factor recovery codes?
Any existing recovery codes you saved will be invalidated. (yes/no)

yes

Your two-factor authentication recovery codes are:

119135e5a3ebce8e
11f6v2a498810dcd
3924c7ab2089c902
e79a3398bfe4f224
34bd7b74adbc8861
f061691d5107df1a
169bf32a18e63e7f
b510e7422e81c947
20dbed24c5e74663
df9d3b9403b9c9f0

During sign in, use one of the codes above when prompted for your
two-factor code. Then, visit your Profile Settings and add a new device
so you do not lose access to your account again.
Comment

PREVIOUS NEXT
Code Example
Shell :: know version of centos ec2 
Shell :: check python running process linux 
Shell :: git abort changes 
Shell :: how to run makefile in windows 
Shell :: delete logs older than 7 days linux 
Shell :: compdef command not found 
Shell :: Error: Command failed: adb shell am start -n 
Shell :: Connect to Remote MySQL Database through Command Line 
Shell :: add and remove users in Linux 
Shell :: google translate for linux 
Shell :: gcc install mac 
Shell :: Forgot the password I entered during postgres installation 
Shell :: composer global install 
Shell :: install makecert windows 10 
Shell :: npm install mongoose specific version 
Shell :: linux mint 20 dark mode 
Shell :: what are the ubuntu packages required for laravel to be installed 
Shell :: vagrant@127.0.0.1: permission denied (publickey). 
Shell :: how to return latest version in github 
Shell :: batch script loop 
Shell :: git stash drop 
Shell :: pip install in jupyter notebook 
Shell :: github untrack files 
Shell :: node js 16 install ubuntu 20.04 
Shell :: cancel rebase git 
Shell :: linux remove folder with content 
Shell :: test if file is executable bash 
Shell :: how to write a shell script in ubuntu 
Shell :: create batch file to delete folders 
Shell :: bash remove everything after character x 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =