Resyncing FOG's service account password


  • Moderator

    We have seen (sometimes) the FOG Admin will use/change/modify the linux user fog's user account properties and password. This is generally a bad idea to use a service account for normal system maintenance. In fog’s case if someone outside of the FOG installer changes this account your fog installation will become broken.

    Understand this linux user account fog is not the same as the default WebGUI administrator of the same name (fog). We are discussing resetting fog’s linux service account fog.

    You will typically see this error when trying to capture an image to the FOG server. FOG will throw an error like:

    Reattempting to update Database.... Failed
    

    or

    Message: ftp_login(): Login incorrect., Host: xx.xx.xx.xx, Username: fog
    

    The following is the procedure for resyncing the fog service account. This must be done while logged in using a linux user account other than fog

    1. Review the file /opt/fog/.fogsettings (this is a hidden file)
    2. In that file there is a entry called password=
    3. Capture that password. You will need it to reset the FOG server.
      Hint: I can tell you its much easier to do these steps by connecting to your fog server using putty from a windows computer. Copy and paste works great using putty (free terminal program).
    4. Now reset the linux user fog's password with sudo passwd fog
    5. Now go to the FOG WebGUI and FOG Configuration->FOG Settings->TFTP Server and ensure the password listed in FOG_TFTP_FTP_PASSWORD matches the password you collected in step 2.
    6. While still in the FOG WebGUI goto Storage Management->All Storage Nodes select the default or storage node in question.
    7. Ensure that Management Password matches the password you collected in step 2.
    8. Now finally back in the linux console of the fog server, navigate to where your fog installer files are (typ either /root/fogproject or /opt/fogproject) and rerun the fog installer (./bin/installfog.sh) to realign the remaining bits…

    Once these steps have been completed your FOG server should be happy with you again.


Log in to reply
 

419
Online

39.8k
Users

11.2k
Topics

106.8k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.