Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes
Somebody has changed the admin password and I cannot sign in to the web panel!

How to recover the password?
by (37.6k points)

1 Answer

+1 vote

There is no password recovery option in the web panel UI.

The password can be recovered using the database (SQL request).

Login to your server by SSH and run the following commands:

# sudo su postgres

(enter your SSH password here)

# psql hmdm

hmdm=# select * from users where name='admin';

(you will get a row, the first parameter is the admin user id, usually it is 1 but may be different for other users.

hmdm=# update users set password=upper(md5('new-password')) where id=1

(this command recovers the password, type the desired password instead of new-password).

After that, restart Tomcat by running the command:

service tomcat9 restart

by (37.6k points)
edited by
...