Changing UI Admin Password From the Shell

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
L7 Applicator
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.

Rate this article:
Comments
L3 Networker

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

L7 Applicator

Fixed ! Thanks bartoq (again)

L3 Networker

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.

L5 Sessionator

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

 

L7 Applicator

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

L3 Networker

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

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

L7 Applicator

@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

  • 28959 Views
  • 7 comments
  • 0 Likes
Register or Sign-in
Contributors
Labels
Article Dashboard
Version history
Last Updated:
‎05-22-2020 08:35 AM
Updated by:
Retired Member