SOLVED Passwords, I broke 'em...

  • Hi,

    So I thought I’d change FOG’s default very secure password to something slightly harder to remember 😉

    Silly as I am I went in to the web interface and under ‘User Management’ located the ‘fog’ user and changed the password… BOOM, done, that all there’s to it… or so I thought… Logging in on the web interface with the new password works fine, but then capturing an image fails, all kinds up update errors ftp_login() errors, etc.

    This is roughly what I get at the end of a capture task:

    * Task Complete
    * Updating Database...............................Failed
    * Error returned: Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, line 463, Message: ftp_login(): Login incorrect., Host:, Username: fog
    * Reattempting to update database.................Failed
    * Error returned: Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, line 463, Message: ftp_login(): Login incorrect., Host:, Username: fog
    ---- AND SO ON ----

    after reading:

    I tried a bunch of things:

    1. change the linux fog user password.
      direct FTP still not working.
      — panic, ‘maybe I don’t really need all that password security stuff’ —

    2. changed back the linux fog user password.
      direct FTP still working again!
      but, still getting the error while capturing the image
      — panic and cry (a little), ‘I really don’t understand all this’ —

    3. changed back the user password in the web interface
      Still captures fail with the ftp_login() error.
      — panic, cry (more), ‘Maybe I should consider quitting my job?’ —

    so, before I go for step
    4) reinstall f’ing centos and start from scratch…
    — suck it up, I should have learned a trade ----

    I thought I’d ask what to do here…

    Thank you all again!

  • @palloquin said in Passwords, I broke 'em...:

    Why can I change the ‘fog’ user’s password through the web interface if this just breaks it…

    I should clairify something here - the web credentials you use to log into the web interface are not the same credential-set as the storage node’s default ‘fog’ account. These are two completely separate and independent things. The wiki article called “Password Central” explains every single password in the FOG Server, how it’s used, what it’s for, where to change it. You might look through it if you’re really interested in learning more linux-config-dark-magic-stuff

  • Senior Developer

    @palloquin Correct.

    Just like you wouldn’t want a website being capable of resetting your windows password on a whim, we don’t allow changing the “users” password from the fog website. Imagine if we did? All you would need to do is type root, password and any person would have access to your system.

  • Thanks @Tom-Elliott , @Wayne-Workman !

    I’ll keep the re-run in mind in case of future issues.

    This begs the question though… Why can I change the ‘fog’ user’s password through the web interface if this just breaks it…
    If I understand correctly, there is no way of just using the web interface to change the fog user’s password. I will always afterwards have to either:

    1. re-run the install script
    2. become much wiser than I am and do some linux-config-dark-magic-stuffto make it work.


  • @butch2861 said in Passwords, I broke 'em...:

    what do I do when I am there?

    As it says. Visit your web interface, this is referring to your FOG Server’s web interface. http://x.x.x.x/fog/management where x.x.x.x is your FOG Server’s IP address.

  • @Wayne-Workman
    I went ahead and am doing the update now…
    to Fog
    after the update it is saying i need to install/update my database schema…by going into the web interface…what do I do when I am there? saying press enter when database is updated/installed

  • @Wayne-Workman
    Hey guys…THIS is my exact problem I am having with my server today…is my FOG Storage Node password to be the same as my TFTP Server password?

  • @palloquin What tom said is probably part of half of the things we say here. do this, do that, blah blah then re-run the fog installer. The fog installer is the first thing you should ‘just run’ when your server is in trouble. It makes sure a bunch of things are set correctly, it rewrites web files, can configure dhcp, restarts services - lots of stuff.

  • Senior Developer

    @palloquin THe simplest method:

    Edit the /opt/fog/.fogsettings file and edit between the ''s to set whatever password you want.

    Re-run the fog installer.

  • Ok, panic is over, things are working again…

    Now for the million dollar question…

    What if, some one, insane as this might sound, would think 'Hmmmmm I don’t like it if my password is… “password” ', what if this foolish person was bent on changing it… how would he go about that?

    Is there a step by step guide?




  • @Wayne-Workman
    That is quite simple

  • @palloquin I edited your post to show an example. Click the edit button to look at it.

  • Senior Developer

    @palloquin The “password” you’re seeing currently is a randomly set password. It is the “plaintext” password.

    To make parts “red” as you stated I’m using “backtick{elementtoredden}backtick”

  • Hi Tom!

    another week, another question you help me with 😉

    /opt/fog/.fogsettings contains some form of encoded password at the moment.

    should I replace it with “password” plain text to reset?

    and… how do you make pards of your code red in your posts?

    testing 123

  • Senior Developer

    Please edit the fogserver file /opt/fog/.fogsettings and update the password= field to match what you typed in the management page. After this re-run the fog installer, it will update your system’s fog user passwords.