Can't login after accidentally setting fog user to quick deployment
-
I am a noob to Fog. I loaded 1.2.0 onto a virtual machine (VMWare) and was able to do the memory test and upload an image. Then I decided to try quick deployment and I checked the box next to the fog username that allowed that user to do quick deployment. I did not even notice the warning that I would not be able to log in with that user once I checked that box. It was late and I was tired. Now I cannot get back into the web interface and I want to know if there is a place where I can undo that setting in the php or somewhere else. Or can I add a different user and then reset fog? I will need step by step instructions for fear that I am doing something wrong. I am using Ubuntu 14.04LTS Server. Thanks!
-
I’d recommend upgrading to FOG 1.3.0 RC5 via these instructons:
https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunkAnd then after this is complete, remove the fog user via CLI in MySQL, and recreate it using these instructions:
https://wiki.fogproject.org/wiki/index.php?title=Password_Central#Web_Interface -
Thanks Wayne. I will go try that right now. I will let you know how it works.
Should I be setting up a few users? If so is there a document that shows best practice for the users that you set up?
Thanks again! -
@BusyTech Not really a best practice. It’s really easy to make users.
-
Here is what happened. I ran the code per the wiki of
sudo apt-get update && apt-get install svn
and it came back and asked if I was root so I fixed it by adding sudo to the second section like this
sudo apt-get update && sudo apt-get install svn
It ran and came back and said unable to locate package svn. I am going through the process of trying to find out why but if you have a quick answer that would be helpful.
-
@BusyTech Use the git method. Sourceforge is unreliable and untrustworthy. We have the code there because some people use it, but if at all possible everyone should use git instead.
-
Okay I think I have found what the next step is. As you can see from my previous posts (I forgot to link them to you…long day) that it ran into an error and said unable to locate package svn. Isn’t it referred to as subversion so I would have to run
sudo apt-get install subversion
Please confirm as I don’t want to mess this server up any more than I already have with my stupid mistake.
Thanks -
@BusyTech I would still suggest using git instead.
-
@Wayne-Workman Okay I will go do that now. I was wondering about that.
-
@Wayne-Workman
Okay I have completed the upgrading but now I am trying to reset my fog user account. When I use the second set of instructions that start withmysql
It comes up that access is denied for user root. I know I set a password for the sql database but I cannot find instructions for the trunk on how to access mysql. Am I doing something wrong?
-
@BusyTech The password would (or should) still be present inside of .fogsettings, labeled as snmysqlpass or something like that. Run this command to see the file:
cat /opt/fog/.fogsettings
-
@Wayne-Workman
Okay I have completed all of the steps and when I try to login as fog via the web interface it still says invalid login.
Now what?At least I have the latest trunk…
-
What is interesting is that before I did all of the steps I could login into the mobile section using fog and the password but I was unable to login into the regular page. Now I am unable to login into either. So it definitely reset something but I don’t know what.
-
@BusyTech Did you first delete the existing fog user?
-
@Wayne-Workman
No I did not as that was not part of the instructions. How do I do that? This is where being a noob makes it a little harder.
Thanks for all of your help. -
@BusyTech You could just truncate the table I guess.
Between the
use fog
and the rest of the steps, do this:truncate table users;
-
@Wayne-Workman
Sorry I didn’t see that as part of the instructions. Is it:sudo userdel fog
-
@Wayne-Workman
That did not work either. Should I try
sudo userdel fog
and then follow the instructions to create a user named fog? With the amount of time I have spent on this I could have rebuilt the entire virtual machine.
Thanks for your help.
-
@BusyTech Oh no, no no no. Don’t do that.
I think there is some confusion here.
You lost web access - this has absolutely nothing to do with the local fog user whatsoever.
This only requires work in MySQL to fix - that’s it.
-
@Wayne-Workman
Okay. I am glad you clarified. I only lost web access when I checked the box to allow that user to do quick deployments. Which, if I understand it correctly, changes that user to mobile access only. Unfortunately, I do not know how to reset that user to give them web access again.I would rather not rebuild the whole thing but nothing seems to be working. I am learning a lot about it though. I guess that is the silver lining.