Changing UI Admin Password From the Shell

Announcements

Changes to the LIVEcommunity experience are coming soon... Here's what you need to know.

Printer Friendly Page
No ratings

User credentials for MineMeld UI are stored in /opt/minemeld/local/config/api/wsgi.htpasswd in the standard Apache2 htpasswd format.

 

1. Installing htpasswd utility

It's not installed by default, it is contained in the apache2-utils package.

$ sudo apt-get install apache2-utils

 

2. Changing UI admin password

$ sudo htpasswd /opt/minemeld/local/config/api/wsgi.htpasswd admin
New password:
Re-type new password:
Updating password for user admin

 

3. Restarting minemeld-web

To enforce the new credentials the MineMeld Web API should be restarted. This doesn't restart the MineMeld engine, just the frontend component.

$ sudo -u minemeld /opt/minemeld/engine/current/bin/supervisorctl -c /opt/minemeld/supervisor/config/supervisord.conf restart minemeld-web
minemeld-web: stopped
minemeld-web: started 

 

NOTE:  To add a new user to the UI just use the htpasswd command at step 2 with a new username instead of admin.

Comments

in Minemeld 0.9.3, there is no minemeld.htpasswd.

I updated the admin pass work by changing the wsgi.htpasswd file

 

ubuntu@ip-10-0-0-38:/opt/minemeld/local/config$ ls
committed-config.yml running-config.yml wsgi.htpasswd wsgi.yml

 

ubuntu@ip-10-0-0-38:/opt/minemeld/local/config$ sudo htpasswd /opt/minemeld/local/config/wsgi.htpasswd admin
New password:
Re-type new password:
Updating password for user admin

Fixed ! Thanks bartoq (again)

Just in case folks didn't know, you can also use this for creating new admin users for the UI:

 

ubuntu@minemeld:~$ sudo su
root@minemeld:/home/ubuntu# htpasswd /opt/minemeld/local/config/wsgi.htpasswd mynewadminuser
New password:
Re-type new password:
Adding password for user mynewadminuser

root@minemeld:/home/ubuntu# /opt/minemeld/engine/current/bin/supervisorctl -c /opt/minemeld/local/supervisor/config/supervisord.conf restart minemeld-web
minemeld-web: stopped
minemeld-web: started
root@minemeld:/home/ubuntu#

 

You can now log into the web UI with "mynewadminuser" using the password you entered above.

The command must be, $ sudo htpasswd /opt/minemeld/local/config/api/wsgi.htpasswd admin

 

Hi @ymiyashita, thanks ! fixed ! Now you can also change the password from the WebUI

Should be updated to note that the htpasswd file is now located in....

"/opt/minemeld/local/config/api" not "/opt/minemeld/local/config/"

@ymiyashita @El-ahrairah thank you ! fixed !

You can also now change the admin password from the MineMeld WebUI, I will add a section about it

Register or Sign-in
Version history
Last update:
‎05-22-2020 08:35 AM
Updated by:
Retired Member
Contributors