Confluence Docs 3.0 : Restoring Passwords To Recover Admin User Rights This page last changed on Nov 04, 2008 by rhartono. Use this document if you are unable to login as administrator, to manually replace administrator passwords or give users administration rights. ### New Confluence User Management From Confluence 2.7 onwards the user management is handled by AtlassianUser. Hence in the database, Confluence will refer to 'USERS' table to store and refer to its users. When you imported your backup on upgrade, what should happen is the users in the 'OS_USER' table should get copied into 'USERS' table. If you are still using OSUser please refer to our older document. Learn more about the algorithm Confluence is using. ### Stage One - Identify Administrator To find out which usernames have admin privileges, connect to your database using a database admin tool such as DBVisualiser. Please download a database admin tool now if you do not have one installed already. Once installed, connect to your database and retrieve the list of administrator usernames with:
    select name from users u, local_members l, groups g where g.groupname = 'confluence-administrators' and g.id=l.groupid and u.id=l.userid;
### Stage Two - Replace Administrator Password Confluence does not store passwords in plain text in the database, but uses hashes computed from the original password. You instead cut and a paste a hash, rather than the plain password, over the existing password. Below is the hash for the password `admin`
    x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A==
3. To change the password to `admin` for a given username: Shutdown Confluence Connect to your database. The SQL to run is:
       update users set password =
       'x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A=='
       where name='<USERNAME>';
2. Start Confluence Login with your modified username and use password `admin` #### For the evaluation embedded database Shut down Confluence. Open <confluence-home>/database/confluence-db.script. Search for:
       INSERT INTO USERS VALUES(
Replace the password for the appropriate user, you can copy and paste the hash value above. Save the file, and restart.

Document generated by Confluence on Nov 05, 2009 23:27