gitlab修改用戶密碼
#sudo gitlab-rails console production
user=User.where(name: "root").first
user.password='12345678'
user.password_confirmation = '12345678'
user.save!
quit
gitlab修改用戶密碼
#sudo gitlab-rails console production
user=User.where(name: "root").first
user.password='12345678'
user.password_confirmation = '12345678'
user.save!
quit
su vim /etc/sudoers yy root = ALL ALL p 修改爲 wangfj = ALL ALL