Password Central

From FOG Project
Revision as of 16:24, 12 July 2012 by Chad-bisd (talk | contribs) (Common Knowledge: removed reference to old forum post since old forum is no longer visible.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page is a work in progress - feel free to help!

See the Discussions tab at the top for templates and known password locations.

And please, feel free to make adjustments and add content!

FOG relies on many passwords. On a simple installation most of these are handled automatically. On more advanced installations troubleshooting password mismatches can be challenging. The page linked below aims to be a single resource to explain all passwords necessary for FOG in all its various configurations.

Common Knowledge

The only password that is encrypted in FOG is the password used for joining computers to a domain; Info->FOG Settings->Active Directory Defaults; all other passwords are listed in plain text.

Basic Installation

Fog's user account on main FOG server

This is a standard user account on the server. It is named 'fog'
Common errors associated with this mismatched password:

  • FOG can't do anything
  • Unexpected, strange errors
  • ...

How to modify this password:

The location varies per operating system.
To reset it, type this at the command line on the Main FOG server:
sudo passwd fog

FOG user on web interface

Common errors associated with a mismatched password:

  • Can't log into FOG web interface
  • ...
How to update it:
sudo ...

MySQL root user

The MySQL root user is normally only used on the main Fog server. Storage nodes use the fogstorage user instead of root.

Common errors associated with a mismatched password:

  • Unable to connect to Database 
    Msg: Failed to connect to server: localhost Server returned: Access denied for user 'root'@'localhost' (using password: YES) 
  • Scheduled Tasks fail to run

How to update it:

Changing the root admin password in MySQL is not simple. It's a lot easier to enter a known root password in the file mentioned below. This is an older guide, but might be helpful if a root password is lost:

http://www.debian-administration.org/articles/442

    Additional notes
  • In a private network this is usually not set. The installer urges a blank password.
  • The password is also in the following files:
    • /var/www/fog/commons/config.php
    • /opt/fog/service/etc/config.php

FOG Quick Image password

How to update it:
From the GUI:

About > PXE Boot Menu >

From command line (note this will be overwritten if the GUI is updated)

sudo vi tftpboot\pxelinux.cfg\default


Additional Passwords Outside of a Basic Installation

Storage Nodes

FOG user account on storage node

    Common errors associated with this mismatched password:
  • <unknown>

How to update it:

On the Storage Node: sudo passwd fog

MySQL connector back to Main FOG server

    Common errors associated with this mismatched password:
  • /images/ directory does not update - contains no images
  • ...

How to update it:

vi /var/www/fog/commons/config.php
define( "MYSQL_DATABASE", "fog" ); 
define( "MYSQL_USERNAME", "fogstorage" ); 
define( "MYSQL_PASSWORD", "b83cd3" );

FTP Connection from Storage Node to Master FOG Server

    Common errors associated with this mismatched password:
  • <unknown at this time>

How to test it:

  1. On the Master FOG Server, copy the password from this file:
    cat /var/www/fog/commons/config.php
    ...
    ...
    ...
    define( "STORAGE_FTP_USERNAME", "fog" );
    define( "STORAGE_FTP_PASSWORD", "[---------longPassword---------]" );
    ...
  2. Using the above credentials, attempt an FTP session back to the Main FOG Server
    From the Storage Node:
    ftp [FOG_Main_Server_IPAddr]
    Connected to [IPAddr].
    220 (vsFTPd 2.2.2)
    Name ([IPAddr]:[user]):fog
    331 Please specify the password.
    Password: [paste that longPassword from above]
    230 Login successful.

To verify that FTP is functional:

  1. <unknown at this time>