Xormon - Reset the admin@xormon.com password

I'm unable to log in to Xormon with the default credentials. Is there a way to reset them from the command line?

Comments

  • Download v1 H2 JAR library https://h2database.com/h2-2019-10-14.zip or extract from xormon.war

    unzip -j /opt/xorux/xormon/xormon.war '*/h2*.jar'
    

    Stop Xormon service

    systemctl stop xormon
    

    Run SQL update

    java -cp h2*.jar org.h2.tools.Shell -url 'jdbc:h2:file:/home/lpar2rrd/xormon-data/db/h2;AUTO_SERVER=TRUE;MODE=MYSQL;' -user sa -sql 'UPDATE XUSER SET PASSWORD='\''$2a$10$UZf/pa6RE8wcLtXNgyOoI.y9JBQ9Tw0XH.fvi0XWE6HMUcKe0PzW2'\'' WHERE ID=1;'
    

    Start Xormon service

    systemctl start xormon
    

    Login to Xormon webapp using admin@xormon.com default password 'xorux4you'

  • Thank you. That worked.

Sign In or Register to comment.