gitlab web登入密碼忘記以后可以用如下方式修改密碼
shell>cd /home/git/gitlab
shell> su git
shell>bundle exec rails console production
irb(main):007:0> user = User.where(email: 'admin@local.host').first //email 為gitlabuser 賬戶,我的是默認的管理員賬戶
irb(main):007:0>user.password = 'yourpassword' //密碼必須至少8個字符
irb(main):007:0>user.save! // 如沒有問題 返回true