Lost Admin Password

What’s the best way to recover access to the web interface if the
admin password is lost??

Thanks,
Landon

On Thu, Jul 15, 2010 at 12:41 PM, Landon chef@lclark.net wrote:

What's the best way to recover access to the web interface if the
admin password is lost??

You have to delete the admin user from the database and then restart
the webui. You can access the database via the futon web interface at
http://localhost:5984/_utils In most installations couchdb only binds
to the loopback interface, but you can use an SSH tunnel to connect
with your desktop/laptop:
ssh -L 5984:localhost:5984 you@server.example.com

From there, select the chef database, then use the "views" drop down
box to navigate to the web UI users view and find and delete the
admin. Restarting the webui server should recreate it with the default
password after that.

HTH,
Dan DeLeo

Thanks,
Landon

Thanks Daniel. That helps a lot!

Landon

On Thu, Jul 15, 2010 at 9:10 PM, Daniel DeLeo dan@kallistec.com wrote:

On Thu, Jul 15, 2010 at 12:41 PM, Landon chef@lclark.net wrote:

What's the best way to recover access to the web interface if the
admin password is lost??

You have to delete the admin user from the database and then restart
the webui. You can access the database via the futon web interface at
http://localhost:5984/_utils In most installations couchdb only binds
to the loopback interface, but you can use an SSH tunnel to connect
with your desktop/laptop:
ssh -L 5984:localhost:5984 you@server.example.com

From there, select the chef database, then use the "views" drop down
box to navigate to the web UI users view and find and delete the
admin. Restarting the webui server should recreate it with the default
password after that.

HTH,
Dan DeLeo

Thanks,
Landon