<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.fogproject.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Termiux</id>
		<title>FOG Project - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.fogproject.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Termiux"/>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Special:Contributions/Termiux"/>
		<updated>2026-05-17T12:03:10Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Images_Directory_Permissions&amp;diff=5676</id>
		<title>Images Directory Permissions</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Images_Directory_Permissions&amp;diff=5676"/>
				<updated>2012-02-13T16:40:07Z</updated>
		
		<summary type="html">&lt;p&gt;Termiux: Undo revision 5659 by BarryBlackwellbdv (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== * unable to move /images/dev/macaddress to /images/name-of-image ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
You receive the following error after an image has been created:&lt;br /&gt;
&lt;br /&gt;
''* unable to move /images/dev/macaddress to /images/name-of-image''&lt;br /&gt;
&lt;br /&gt;
The error will repeat indefinitely.&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
The FOG user does not have permission to write to the images directory on the FOG server (usually /images). This often occurs when the /images directory has been recreated or has had its permissions changed.&lt;br /&gt;
&lt;br /&gt;
Another cause is the Image Type is not correct (i.e. You're trying to image multiple partitions as a single partition.)&lt;br /&gt;
&lt;br /&gt;
There is a third cause, that involves your FTP passwords being incorrect making FOG unable to handle files via FTP&lt;br /&gt;
&lt;br /&gt;
=== Resolution ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1 ====&lt;br /&gt;
&lt;br /&gt;
# Turn off the computer being imaged.(you don't have to turn off the PC just run the command on your server)&lt;br /&gt;
# Ensure the FOG user has write permissions on the images directory.&lt;br /&gt;
# Run command as root ''chown -R fog:root /images''&lt;br /&gt;
&lt;br /&gt;
Example: Use:&lt;br /&gt;
&lt;br /&gt;
 chown -R fog.root /images  &lt;br /&gt;
&lt;br /&gt;
Finally attempt to create the image again.&lt;br /&gt;
&lt;br /&gt;
==== Method 2 ====&lt;br /&gt;
&lt;br /&gt;
# Switch off the computer being imaged.&lt;br /&gt;
# On the FOG server go to your /images/dev directory and move the temporary image (macaddress.000) to /images&lt;br /&gt;
# Rename the temporary image (macaddress.000) to the name you have set up in the FOG WebUI&lt;/div&gt;</summary>
		<author><name>Termiux</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=FOG_security&amp;diff=5569</id>
		<title>FOG security</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=FOG_security&amp;diff=5569"/>
				<updated>2012-01-31T15:12:33Z</updated>
		
		<summary type="html">&lt;p&gt;Termiux: /* Other issues */  Clear up text&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== FOG Security ==&lt;br /&gt;
&lt;br /&gt;
Currently FOG does not comes with tight permissions or a secure default set up. Although is possible to increase the level of security of our FOG server(s) it must be done carefully if is not to interfere with FOG functionality.&lt;br /&gt;
&lt;br /&gt;
We will list some of the most basics steps you can take to increase the security of your FOG server(s)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''The following set up has been tested on FOG 0.29 and 0.30, things may change in latter versions.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Secure MySQL ===&lt;br /&gt;
&lt;br /&gt;
If you have not secure your MySQL Database since installation, whether it was installed by FOG or via other methods, you need to take a few steps to secure it.&lt;br /&gt;
&lt;br /&gt;
MySQL comes with a little script that enables you to implement some basic security to your database, you only have to run the script but MAKE SURE to take note of the passwords you will set since you will need to provide them to FOG.&lt;br /&gt;
&lt;br /&gt;
* Run the MySQL secure installation script, to run it do this&lt;br /&gt;
&lt;br /&gt;
 sudo mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
''Read what the script states since it's important that you understand what you are doing.''&lt;br /&gt;
&lt;br /&gt;
The script will allow you to set a root password for your database since it was '''blank!''' now set your password and make sure to take note of it. FOG will need it.&lt;br /&gt;
&lt;br /&gt;
When you are done run&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/mysqld reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://dev.mysql.com/doc/refman/5.0/en/mysql-secure-installation.html More info:]&lt;br /&gt;
&lt;br /&gt;
If your interested in further secure your MySQL you can go to the link below, however bear in mind that I have not tested those changes. &lt;br /&gt;
[http://www.symantec.com/connect/articles/securing-mysql-step-step Securing MySQL: step-by-step]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Securing your Images ===&lt;br /&gt;
&lt;br /&gt;
When FOG makes a backup(upload and image), it creates one or more image files for that computer. Depending on how your using FOG you may wanna secure your images directory. Since it's not necessary for other users to access this files we will restrict the access to root and to FOG.&lt;br /&gt;
&lt;br /&gt;
To fix Images folder ownership run (assuming /images/ is where you have your FOG images)&lt;br /&gt;
&lt;br /&gt;
 chown -R fog:root /images/&lt;br /&gt;
&lt;br /&gt;
Then do to set up permissions&lt;br /&gt;
&lt;br /&gt;
 chmod -R 770 /images/&lt;br /&gt;
&lt;br /&gt;
In theory you could(should?) go with a more restrictive set of permissions however, in reality FOG usually complains if we do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Securing NFS ===&lt;br /&gt;
&lt;br /&gt;
NFS Shares are harder to secure cause of its nature. They constantly change ports, and give how FOG access them is not so easy to secure them and at the same time keep FOG working.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''More to come on how to secure NFS soon!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Other issues ===&lt;br /&gt;
&lt;br /&gt;
Unfortunately FOG design doesn't leave much room for security. It's hard to tighten the server and keep FOG working, however this doesn't mean we should ignore this security holes, in contrary we must keep watching them to avoid intrusions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here's a list of some of FOG security problems still to be addressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''No SSL Support on Web UI:''' (Tested on FOG 0.29 and 0.30) Tests performed in Apache and the use of ''RequireSSL'' option with FOG, showed that it cannot deal with the use of SSL, when server enforce SSL connections FOG fails to connect properly.''(Seems like next FOG version 0.33 will support SSL on its Web UI)''&lt;br /&gt;
* '''NFS Shares'''. FOG design allows it to upload(write) images via nfs, this requires access to the nfs share from any computer you wanna upload images from. An attacker could fill your disk and/or erase all files in /images/dev since is mounted as read and write for any client.''(nfs share /images/ is read only)''&lt;br /&gt;
* '''Public availability of files:''' Since FOG files are served via TFTP and PXE, this means any computer on your network can access those files (as longs as they can network boot). This includes the Linux kernel that FOG uses. So any password you set up in the FOG menu is not really relevant for a technical user or an attacker.&lt;br /&gt;
* '''Installation advices:''' During installation FOG recommends to turn off SELinux because it can get in the way of the installation and the way FOG works. Although this certainly allows FOG to work, is not good practice to turn SELinux off. Is better to set SELinux in permissive mode, and then run a few test with FOG so we can allow only the things it needs, and then put it back on, this can take some time to configure properly but it's the safest way to work.&lt;br /&gt;
&lt;br /&gt;
=== Informing FOG of Changes ===&lt;br /&gt;
&lt;br /&gt;
''This assumes you ONLY performed the steps mentioned in this wiki, if you made any other changes this guide might be incomplete for you.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FOG will start to complain it cannot access the MySQL Database case we set up a root password. Lets give FOG the password&lt;br /&gt;
&lt;br /&gt;
* Go to &lt;br /&gt;
 /opt/fog/service/etc/config.php&lt;br /&gt;
Make sure the fields '''MYSQL_USERNAME''' reads '''root''' (or whatever user you wanna use) and for '''MYSQL_PASSWORD''' write down the password. Example&lt;br /&gt;
&lt;br /&gt;
 define( &amp;quot;MYSQL_PASSWORD&amp;quot;, &amp;quot;thisISmySUPERpass0*$98!&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
''If your running FOG and MySQL in the same host, you need to check the line '''MYSQL_HOST''' so it reads '''localhost'''''&lt;br /&gt;
 define( &amp;quot;MYSQL_HOST&amp;quot;, &amp;quot;localhost&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
* Now go to &lt;br /&gt;
 /var/www/html/fog/commons/config.php&lt;br /&gt;
and check the same 3 fields that we did before.&lt;br /&gt;
&lt;br /&gt;
 define( &amp;quot;MYSQL_HOST&amp;quot;, &amp;quot;localhost&amp;quot; );&lt;br /&gt;
 define( &amp;quot;MYSQL_DATABASE&amp;quot;, &amp;quot;fog&amp;quot; );&lt;br /&gt;
 define( &amp;quot;MYSQL_USERNAME&amp;quot;, &amp;quot;root&amp;quot; );&lt;br /&gt;
 define( &amp;quot;MYSQL_PASSWORD&amp;quot;, &amp;quot;thisISmySUPERpass0*$98!&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
Save everything and try to access FOG again and your done =)&lt;/div&gt;</summary>
		<author><name>Termiux</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Unable_to_connect_to_TFTP&amp;diff=5507</id>
		<title>Unable to connect to TFTP</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Unable_to_connect_to_TFTP&amp;diff=5507"/>
				<updated>2012-01-24T15:03:00Z</updated>
		
		<summary type="html">&lt;p&gt;Termiux: /* For Versions .24 + */  Added a few steps to ensure password is correct&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Unable to connect to tftp server ==&lt;br /&gt;
&lt;br /&gt;
=== For Versions Before 0.24 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This seems to be caused by a password issue,&lt;br /&gt;
&lt;br /&gt;
 1. From the fog management interface, go to users.&lt;br /&gt;
 2. Reset the fog user password.&lt;br /&gt;
 3. Click the &amp;quot;I&amp;quot; icon - &amp;quot;Other Information&amp;quot;&lt;br /&gt;
 4. Click &amp;quot;Fog Settings&amp;quot; in the menu on the left&lt;br /&gt;
 5. Replace the FOG_TFTP_FTP_PASSWORD and the FOG_NFS_FTP_PASSWORD fields under FOG settings with &lt;br /&gt;
    your Linux fog user password. (Seems like FOG_NFS_FTP_PASSWORD is gone for ver .24).&lt;br /&gt;
&lt;br /&gt;
=== For Versions .24 + ===&lt;br /&gt;
&lt;br /&gt;
*Reset the local password for user fog with:  [sudo] passwd fog&lt;br /&gt;
*In management front end, go to '''Storage Management''' -&amp;gt; '''All Storage Nodes'''&lt;br /&gt;
*Click on '''DefaultMember'''&lt;br /&gt;
*Change the '''Management Password''' to match the password you just changed.&lt;br /&gt;
*Then go to '''Other Information''' and change '''FOG_TFTP_FTP_PASSWORD''' also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Go to your fog web location, on Red Hat and CentOS is in:&lt;br /&gt;
 /var/www/html/fog/&lt;br /&gt;
&lt;br /&gt;
Then open the file:&lt;br /&gt;
 /commons/config.php&lt;br /&gt;
&lt;br /&gt;
and check the values of:&lt;br /&gt;
'''TFTP_FTP_PASSWORD''' and '''STORAGE_FTP_PASSWORD'''&lt;br /&gt;
&lt;br /&gt;
These '''MUST''' match the password you set above, if not write them properly in here&lt;br /&gt;
&lt;br /&gt;
Finally reload of the service&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/vsftpd reload&lt;br /&gt;
&lt;br /&gt;
=== Verify Server Settings ===&lt;br /&gt;
&lt;br /&gt;
If you have modified your server setup since first install, then the new changes must be updated and verified in the '''Fog Settings''' menu. &lt;br /&gt;
It might not be enough to just re-run the installer.&lt;br /&gt;
For instance, a new IP lease will cause the server to show the '''Unable to connect to tftp server''' error message.&lt;br /&gt;
&lt;br /&gt;
* Go to the &amp;quot;I&amp;quot; icon, which is the '''About''' menu in 0.29&lt;br /&gt;
* Select '''Fog Settings''' and navigate down to '''TFTP Settings''' and verify that all options are correct for your setup.&lt;br /&gt;
&lt;br /&gt;
=== Ensure nothing else on the network is conflicting with the DHCP server ===&lt;br /&gt;
&lt;br /&gt;
I had this error the past two days and tried all of the standard suggestions. Finally Wireshark came to the rescue. I discovered a second, feral DHCP server on the network that wasn't issuing IP addresses but must have been running interference somehow. When I disconnected it from the network, PXE boot worked as expected.&lt;/div&gt;</summary>
		<author><name>Termiux</name></author>	</entry>

	</feed>