ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Reset Chef Admin Password

    IT Discussion
    1
    1
    2.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by scottalanmiller

      This one was driving me crazy. Uninstalling and reinstalling and most guides on the Internet don't work because they assume an older application architecture and no longer work. I have Chef 11.0.12 (on RHEL 6 in my case.) Took a bit to figure out that the PostgreSQL database has to be altered. Here are some quick reset instructions:

      sudo -u opscode-pgsql /opt/chef-server/embedded/bin/psql opscode_chef
      update osc_users set hashed_password = '$2a$12$y31Wno2MKiGXS3FSgVg5UunKG48gJz0pRV//RMy1osDxVbrb0On4W' , salt ='$2a$12$y31Wno2MKiGXS3FSgVg5Uu' where username ='admin';
      \q

      Then you can log in with admin / password. Be sure to change your password immediately after logging back in.

      Here is the link where I found the instructions: http://lists.opscode.com/sympa/arc/chef/2013-03/msg00335.html

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post