[SOLVED] PMG Web login reset

KatyComputer

Well-Known Member
Sep 26, 2019
195
16
58
62
St Louis
katycomputer.com
PMG lost its web interface, after a bit of Googling, I ran "pmgconfig apicert --force 1" as root.

Now I have Web Interface without the ability to log in. How do reset/establish web login credentials from the command line?
 
PMG lost its web interface, after a bit of Googling, I ran "pmgconfig apicert --force 1" as root.

Now I have Web Interface without the ability to log in. How do reset/establish web login credentials from the command line?
Isn't is using System user root Password as default? Try to ssh and login with your password, after granted access type passwd and enter a new one... Reboot and try again?
 
SSH in as root, change passwd, reboot, root can get in via ssh, root cannot access web interface.
* anything relevant in the PMG's journal?
* anything relevant in '/var/log/pmgproxy/pmgproxy.log'?
* anything relevant in the js-console in the browser (or in the network tab)?
 
Working in Firefox after:
pmgconfig apicert --force 1​
systemctl restart pmgproxy pmgdaemon​
rm -f /etc/pmg/pmg-csrf.key​
pmgconfig apicert --force 1​
pmgconfig init​

I am not sure why it still fails in Chrome - it will have to keep for another day.
 
Working in Firefox after:
pmgconfig apicert --force 1​
systemctl restart pmgproxy pmgdaemon​
rm -f /etc/pmg/pmg-csrf.key​
pmgconfig apicert --force 1​
pmgconfig init​

I am not sure why it still fails in Chrome - it will have to keep for another day.
Wipe whole cache of browser.
 
It would be inconvenient for me to do so until later in the day, so I went to another computer.
It's working. This makes no sense why PMG would report bad password. I am seeing the same problem at home & work. Perhaps a Chrome extension, in any event why "Login failed. Please try again"

I will mark this one solved and move on.