Topic: Reseting default adminstrator user account password

Topic type:

If, for whatever reason, you don't have the default site administrator password for your account, here is how to set it.

First, open up your_app/db/bootstrap/users.yml (or you_app/current/db/bootstrap/users.yml if you are using Capistrano to deploy to) and grab the crypted_password value, then in a database client session in the CORRECT database for your running enviroment (i.e. your_app_production if you are running in production mode), issue this:

mysql -u kete -p your_database_production
....
mysql> UPDATE users SET crypted_password = '00742970dc9e6319f8019fd54864d3ea740f04b1' WHERE id = 1;
mysql> exit;

Now the user with a login of 'admin' will have a password of 'test'.  Login as that user, click on the name on the top right next to "| Logout", and then use the "Change Password" link to update to a new non-default password as you should for security.

Discuss This Topic

There are 0 comments in this discussion.

join this discussion

Creative Commons Attribution-Share Alike 3.0 New Zealand License
Reseting default adminstrator user account password by Walter McGinnis is licensed under a Creative Commons Attribution-Share Alike 3.0 New Zealand License