Recently I had some troubles in resetting the SCM Manager admin password and here's simply how to do it.
- 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"
- 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!
Good job!and thanks!