Fog WebUI Password Successfully Reset But Still Can't Login
-
@sebastian-roth Sebastian… I’m confused… I posted the exact command that I typed, and it DOES include “MD5()” with the password hash inside it. I did it correctly already, right?
-
I think I may have found the problem! I’m kinda surprised nobody thought to try this! I just ran:
mysql> select user from mysql.user; +------------------+ | user | +------------------+ | fogstorage | | debian-sys-maint | | mysql.session | | mysql.sys | | root | +------------------+ 5 rows in set (0.00 sec)
Notice there’s no “fog” user! This is especially confusing to me since I followed these instructions to a tee!:
https://wiki.fogproject.org/wiki/index.php?title=Restoring_FOG_from_Backup -
No, copy my command exactly. Not changing
'password'
at all. Of course using the MD5 you could use any plain text.Right now, your password is set literally to:
$2y$11$g0Hu8OaOStuPk7WWYGh6Wu4PLlZDZGOkzMwEEAk.rZMrI9IdDwno.
-
@tom-elliott Ah, I get what you’re saying now, sorry 'bout that; my bad.
OK, so I copied and pasted this (exactly) and here are the results:
UPDATE `users` SET `uPass` = MD5('password') WHERE `uName` = 'fog';
I just tried logging in with “fog” and “password”, but it still fails.
Did you notice my post earlier where I said that I don’t see a “fog” user in the mySQL db?
-
@lmioperations You’re not changing the fog user password for mysql. You’re changing the user that sits in
fog
.users
-
@tom-elliott Dang, this is getting more confusing :D.
-
Are you sure caps-lock isn’t set and all. I know it seems stupid, but this doesn’t make sense.
What if you copy the word
password
and use the copy paste to the password field. -
@tom-elliott Capslock is definitely not on. You saw exactly what I pasted into the shell prompt (what you see in my previous post is what I copied straight out of my shell prompt from the server) :-X…
-
In chat requested @lmioperations edit /opt/fog/.fogsettings and remove the
packages
line. Then re-run the installer. All things seemed to point that mcrypt packages weren’t installed or enabled.After rerunning the installer @lmioperations is able to login to the GUI using the password as set.
-
@tom-elliott You rock Tom! Thanks for the help man! : )