Skip to content

Instantly share code, notes, and snippets.

@miglen
Last active December 20, 2023 10:53
Show Gist options
  • Save miglen/dc9341c0676029ad66b4 to your computer and use it in GitHub Desktop.
Save miglen/dc9341c0676029ad66b4 to your computer and use it in GitHub Desktop.
How to reset your admin password in SCM Manager

How to reset the scmadmin (administrator) password in SCM Manager?

Recently I had some troubles in resetting the SCM Manager admin password and here's simply how to do it.

  1. Look for file users.xml where the users and passwords are stored. Usual locations:
/root/.scm/config/users.xml
/var/scm-server/conf/users.xml
$SCM_INSTALL_OR_HOME_DIR/config/users.xml

Last way to find it: grep --include users.xml -rnw '/' -e "scmadmin"

  1. Change the password of scmadmin The passwords are hashed by SHA1 algorythim. The file contents should look something like this:
<user>
            <properties/>
            <active>true</active>
            <admin>true</admin>
            <creationDate>1420799190670</creationDate>
            <displayName>SCM Administrator</displayName>
            <lastModified>1420799730486</lastModified>
            <mail>[email protected]</mail>
            <name>scmadmin</name>
            <password>ff8f5c593a01f9fcd3ed48b09a4b013e8d8f3be7</password>
            <type>xml</type>
        </user>

The hash ff8f5c593a01f9fcd3ed48b09a4b013e8d8f3be7 is basically scmadmin. You may use online SHA1 generator to create your own password and change it within the <password></password> tag.

I hope that this gist will save someone my 15 minutes of troubleshooting and searching how to reset this bloody password!

@Ledar
Copy link

Ledar commented Sep 11, 2017

Good job!and thanks!

@schneidr
Copy link

The SHA1 generator is down (domain for sale). Suitable replacement: https://www.sha-generator.de/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment