- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
on 02-03-2016 01:54 AM - edited on 05-22-2020 08:35 AM by Retired Member
User credentials for MineMeld UI are stored in /opt/minemeld/local/config/api/wsgi.htpasswd in the standard Apache2 htpasswd format.
It's not installed by default, it is contained in the apache2-utils package.
$ sudo apt-get install apache2-utils
$ sudo htpasswd /opt/minemeld/local/config/api/wsgi.htpasswd admin
New password:
Re-type new password:
Updating password for user admin
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.
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
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
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