Resetting the Gitorious user password
This tip was written by Diogo Baeder
(Taken from http://howlingwolf.de/blog/2011/07/recover-lost-gitorious-password/)
You’ve setup your own Gitorious and lost your password? No, problem!
SSH your way to your box and change into the gitorious-directory (mine is /var/www/gitorious)
Fire up the console
# env RAILS_ENV=production ruby script/console
on sudo-systems (like Ubuntu)
$ sudo env RAILS_ENV=production ruby script/console
and then type in the following commands:
@user = User.find_by_login("yourusername")
@user.password = "yournewpassword"
@user.password_confirmation = "yournewpassword"
@user.save
The final output should be “true” and you’ll be able to login into the account with your brand new password. Yay!
Comentários
Postar um comentário