<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mainesysadmin.com &#187; security</title>
	<atom:link href="http://mainesysadmin.com/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://mainesysadmin.com</link>
	<description>SysAdmin in Maine</description>
	<lastBuildDate>Wed, 06 Jan 2010 16:24:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HowTo &#8211; Secure GRUB bootloader for VMware ESX and Linux</title>
		<link>http://mainesysadmin.com/2009/01/22/howto-secure-grub-bootloader-for-vmware-esx-and-linux-in-general/</link>
		<comments>http://mainesysadmin.com/2009/01/22/howto-secure-grub-bootloader-for-vmware-esx-and-linux-in-general/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 20:22:01 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://mainesysadmin.com/?p=172</guid>
		<description><![CDATA[Here are a couple of really good reasons on why you need to secure your server&#8217;s boot loader regardless if you&#8217;re using GRUB or LiLo.  In this article I am only going to cover how to configure GRUB.

Preventing Access to Single User Mode — If attackers can boot the system into single user mode, [...]]]></description>
			<content:encoded><![CDATA[<p>Here are a couple of really good reasons on why you need to secure your server&#8217;s boot loader regardless if you&#8217;re using GRUB or LiLo.  In this article I am only going to cover how to configure GRUB.</p>
<ul>
<li><em>Preventing Access to Single User Mod</em>e — If attackers can boot the system into single user mode, they are logged in automatically as root without being prompted for the root password.</li>
<li><em>Preventing Access to the GRUB Console</em> — If the machine uses GRUB as its boot loader, an attacker can use the use the GRUB editor interface to change its configuration or to gather information using the cat command.</li>
</ul>
<div>Now lets go ahead and secure your server/workstation:</div>
<ul>
<li>ssh to your server host with root access</li>
<li>type: <em>grub</em> to enter the grub console</li>
<li>type: <em>md5crypt</em> to create a md5 encrypted password (document your password unencrypted and encrypted versions)</li>
<li>open your favorite editor or download the files via your favorite ftp app.  We need:  <em>menu.lst</em> and <em>grub.conf</em> they&#8217;re located here:  <em>/boot/grub</em></li>
<li>Add the below line to the top of menu.lst and grub.conf:<br />
<em> password &#8211;md5 &#8220;your_encrypted_password&#8221; </em></li>
<li>Now add &#8220;<em>lock</em>&#8221; below each titled o/s choice that you want to prevent from booting without a password.</li>
</ul>
<p>The method I described above will prevent modification of grub boot options AND only allow you to boot those items that were not password protected with the &#8220;lock&#8221; command.</p>
<p>I went ahead and manuallly modified menu.lst and grub.conf.</p>
<p>Here is an example of a sample file that you can use as a guide.  Replace &#8220;your_encrypted_password&#8221; with the md5 hash that you generated earlier with the md5crypt command.</p>
<p><a href="http://mainesysadmin.com/docs/sample.lst">grub.conf</a></p>
<p>I found the following sites useful while writing this article:</p>
<p><a href="http://ubuntuguide.org/wiki/Ubuntu:Edgy/Security" onclick="javascript:pageTracker._trackPageview ('/outbound/ubuntuguide.org');">http://ubuntuguide.org/wiki/Ubuntu:Edgy/Security</a></p>
<p><a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/security-guide/s1-wstation-boot-sec.html#S2-WSTATION-BOOTLOADER" onclick="javascript:pageTracker._trackPageview ('/outbound/www.redhat.com');">http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/security-guide/s1-wstation-boot-sec.html#S2-WSTATION-BOOTLOADER</a></p>
<p><a href="http://www.linux.com/feature/53569" onclick="javascript:pageTracker._trackPageview ('/outbound/www.linux.com');">http://www.linux.com/feature/53569</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mainesysadmin.com/2009/01/22/howto-secure-grub-bootloader-for-vmware-esx-and-linux-in-general/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET is not authorized to access the requested resource</title>
		<link>http://mainesysadmin.com/2008/02/21/aspnet-is-not-authorized-to-access-the-requested-resource/</link>
		<comments>http://mainesysadmin.com/2008/02/21/aspnet-is-not-authorized-to-access-the-requested-resource/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 21:42:16 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://mainesysadmin.com/2008/02/21/aspnet-is-not-authorized-to-access-the-requested-resource/</guid>
		<description><![CDATA[I manage several IIS servers and from time to time I struggle with permissions and web apps.  Some situations are more unique than others, but usually I run into problems when a webserver is running a .NET appliaction and trying to reach across the network to capture some data from a network share on [...]]]></description>
			<content:encoded><![CDATA[<p>I manage several IIS servers and from time to time I struggle with permissions and web apps.  Some situations are more unique than others, but usually I run into problems when a webserver is running a .NET appliaction and trying to reach across the network to capture some data from a network share on another server.</p>
<p>This is the error you might be familiar with:</p>
<p><code markup="none"><br />
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true">, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. </identity></code></p>
<p>To get your webapp to work correctly you have to decide how secure you need the webapp.  If this application does not require security you&#8217;ll need to:</p>
<ol>
<li> Create a domain user (remember the password&#8230;duh)</li>
<li>Under IIS directory security click &#8220;Edit&#8221; for Authentication and access control.</li>
<li>Check allow anonymous access and browse to the domain user, enter the password you gave the user</li>
<li>Sometimes optional.  Create new application pool and set the identity to the domain user you created and browse to the webapp you&#8217;re working with in IIS and select properties and the virtual directory tab.  Set the app to run as the new application pool you created.  This will ensure IIS will use the user you created.</li>
<li>Browse to the network resource on the other server and add the created user to the share and ntfs permissions of that file/folder you need to access (give appropriate permissions, if you don&#8217;t require write don&#8217;t give it!)</li>
<li>Edit the web.config file for the app you&#8217;re working and set <strong>&lt;identity impersonate=&#8221;false&#8221;/&gt;</strong></li>
</ol>
<p>If you require to secure the webapp to a select group of individuals it is slightly different.</p>
<ol>
<li>Give the group/users appropriate ntfs permissions to the web app</li>
<li>Under IIS browse to the application and select properties and Directory Security.  Uncheck anonymous access (this will capture the windows user authenticated that&#8217;s opening the web application).</li>
<li> Make sure the network share/folder/file has the required users/groups and appropriate permissions.</li>
<li>Edit the web.config file for the app you&#8217;re working with and set <strong>&lt;identity impersonate=&#8221;true&#8221;/&gt;</strong></li>
<li>While you&#8217;re in web.config you&#8217;re going to need to familiarize  yourself with the following two tags to secure your applications:</li>
<li>&lt;allow roles=&#8221;Active Directory group&#8221;&gt;</li>
<li>&lt;deny users=&#8221;*&#8221;/&gt;</li>
<li>That will check the user authenticated for the correct group membership as assigned in Active Directory and the file permissions on your network resource and will deny all users that aren&#8217;t members.</li>
</ol>
<p>Side note&#8230;.I&#8217;m not a programmer just a SysAdmin.  I&#8217;m sure there are all kinds of ways to get around this or perhaps even do it better.  The above is just what I&#8217;ve encountered while working with internal portal applications.  There are definitely not enough hours in the day to fully understand ASP.NET application and IIS security but I think that&#8217;s a pretty good stab at it.  Whenever I google for results I have a hard time remembering the differences between the Impersonate user so hopefully now I won&#8217;t forget!</p>
<p>Quick note&#8230; Use  &lt;identity impersonate=&#8221;false&#8221;/&gt; when you want to use IIS anonymous security and  &lt;identity impersonate=&#8221;true&#8221;/&gt; when you want to ensure your application is most secure!</p>
]]></content:encoded>
			<wfw:commentRss>http://mainesysadmin.com/2008/02/21/aspnet-is-not-authorized-to-access-the-requested-resource/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo &#8211; use chmod</title>
		<link>http://mainesysadmin.com/2008/02/20/how-to-use-chmod/</link>
		<comments>http://mainesysadmin.com/2008/02/20/how-to-use-chmod/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 06:16:41 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://mainesysadmin.com/2008/02/20/how-to-use-chmod/</guid>
		<description><![CDATA[The Ubuntu website has a good tutorial on chmod.
https://help.ubuntu.com/community/FilePermissions
]]></description>
			<content:encoded><![CDATA[<p>The Ubuntu website has a good tutorial on chmod.</p>
<p><a href="https://help.ubuntu.com/community/FilePermissions" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/help.ubuntu.com');">https://help.ubuntu.com/community/FilePermissions</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mainesysadmin.com/2008/02/20/how-to-use-chmod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vmware esx and virtual center upgrades</title>
		<link>http://mainesysadmin.com/2007/08/24/vmware-esx-and-virtual-center-upgrades/</link>
		<comments>http://mainesysadmin.com/2007/08/24/vmware-esx-and-virtual-center-upgrades/#comments</comments>
		<pubDate>Fri, 24 Aug 2007 18:12:07 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[esx]]></category>
		<category><![CDATA[vi3]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[patching]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://mainesysadmin.com/2007/08/24/vmware-esx-and-virtual-center-upgrades/</guid>
		<description><![CDATA[I&#8217;m happy to report that upgrading vmware esx from 3.01 to 3.02 was a breeze.  I was able to utilize maintenance mode and for the first time in my career do mid day operating system upgrades with zero affected production systems!  I was also successful in upgrading Virtual Center from 2.0 to 2.02.
I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m happy to report that upgrading vmware esx from 3.01 to 3.02 was a breeze.  I was able to utilize maintenance mode and for the first time in my career do mid day operating system upgrades with zero affected production systems!  I was also successful in upgrading Virtual Center from 2.0 to 2.02.</p>
<p>I utilized the patch update program I previously mentioned for the esx upgrades&#8230;  flawless.</p>
]]></content:encoded>
			<wfw:commentRss>http://mainesysadmin.com/2007/08/24/vmware-esx-and-virtual-center-upgrades/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo &#8211; patch vmware esx&#8230;the easy way</title>
		<link>http://mainesysadmin.com/2007/08/20/how-to-patch-vmware-esxthe-easy-way/</link>
		<comments>http://mainesysadmin.com/2007/08/20/how-to-patch-vmware-esxthe-easy-way/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 14:21:53 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[vi3]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[patching]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://mainesysadmin.com/2007/08/20/how-to-patch-vmware-esxthe-easy-way/</guid>
		<description><![CDATA[During our VMware VI3 deployment I&#8217;ve been very impressed with Virtual Center.  I was however very surprised to not find a patching or update mechanism that is so ancient.  One must run commands from the console to query what patches are installed and maintain their own local patch repository if they have more [...]]]></description>
			<content:encoded><![CDATA[<p>During our VMware VI3 deployment I&#8217;ve been very impressed with Virtual Center.  I was however very surprised to not find a patching or update mechanism that is so ancient.  One must run commands from the console to query what patches are installed and maintain their own local patch repository if they have more than one esx servers and require speedy patching.  Crazy!  Us windows admins have been point and clicking updates since Win2k!</p>
<p>VMTS came to my rescue..A patch program for ESX that utilizes Virtual Center.  The program has been great so far and have erased a nightmare that is CLI patching.  Besides&#8230;have you seen how many patches were released for 3.0.1?  Give me a break!</p>
<p>If you want to make you&#8217;re life easier like mine check out:  <a href="http://vmts.net" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/vmts.net');">http://vmts.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mainesysadmin.com/2007/08/20/how-to-patch-vmware-esxthe-easy-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo &#8211; vmware esx and ntp configuration</title>
		<link>http://mainesysadmin.com/2007/08/02/how-to-vmware-esx-and-ntp-configuration/</link>
		<comments>http://mainesysadmin.com/2007/08/02/how-to-vmware-esx-and-ntp-configuration/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 19:22:00 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[vi3]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://mainesysadmin.com/blog/?p=6</guid>
		<description><![CDATA[I stole the below information from vmtn.net to assist in my ntp configuration with vmware vi3 esx and windows guest o/s vm&#8217;s.
http://www.vmware.com/community/message.jspa?messageID=577447
Once you SSH to the ESX server console and logon as root you need to edit the file /etc/ntp.conf. There are a few editors you can use. I prefer the nano editor.
From the command [...]]]></description>
			<content:encoded><![CDATA[<p>I stole the below information from vmtn.net to assist in my ntp configuration with vmware vi3 esx and windows guest o/s vm&#8217;s.</p>
<p><a href="http://www.vmware.com/community/message.jspa?messageID=577447" class="externalLink" title="External link to http://www.vmware.com/community/message.jspa?messageID=577447" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.vmware.com');">http://www.vmware.com/community/message.jspa?messageID=577447</a></p>
<p>Once you SSH to the ESX server console and logon as root you need to edit the file /etc/ntp.conf. There are a few editors you can use. I prefer the nano editor.</p>
<p>From the command prompt type &#8220;nano /etc/ntp.conf&#8221;<br />
Scroll down until you see the lines that read.</p>
<p>server  127.127.1.0     # local clock<br />
fudge   127.127.1.0 stratum 10</p>
<p>Just below this section add these lines.</p>
<p>restrict 192.168.11.5 mask 255.255.255.255 nomodify notrap noquery<br />
server 192.168.11.5</p>
<p>Replace 192.168.11.5 with the IP address of your ntp server.</p>
<p>That is all that needs to be done in /etc/ntp.conf.<br />
Exit the editor with a ctrl-x, Y to save changes, enter to confirm the filename. You should now be back at the command shell.</p>
<p>Next Step&#8230;<br />
type in &#8220;nano /etc/ntp/step-tickers&#8221;<br />
There should only be one line 192.168.11.5 (replace with the IP of your NTP server)<br />
Exit the editer the same way as above.</p>
<p>Final Steps&#8230;.<br />
Type in all these commands in order.</p>
<p>esxcfg-firewall enableService ntpClient<span style="text-decoration: line-through;"><br />
</span> service ntpd restart<span style="text-decoration: line-through;"><br />
</span>chkconfig level 345 ntpd on<br />
ntpdate -q 192.168.11.5<br />
hwclock systohc</p>
<p>guest o/s and what to do with time sync:</p>
<p>What tool should I use to synchronize a Windows guest operating system with real time? Does the Windows Time service work in a virtual machine?<br />
Solution</p>
<p>The most accurate way to keep guest operating system time synchronized with real time is to use the <span class="externalLink">VMware</span> Tools time synchronization function. You should not use the Windows Time service or other form of clock synchronization meant for physical machines to set the time in the guest operating system. Unlike a physical machine, a virtual machine is not always loaded and running on a CPU. A virtual machine&#8217;s clock can&#8217;t run when the virtual machine is not running. When the virtual machine gets to run on a CPU again, the virtual machine&#8217;s clock needs to catch up to real time. The Windows Time service attempts to synchronize the virtual clock to an external time source on the network; it is not aware of the unusual clock behavior of a virtual machine, however, so it does not synchronize accurately. In some cases, the Windows Time service can do more harm than good. The <span class="externalLink">VMware</span> Tools time synchronization feature is aware of the built-in clock catch-up function in a virtual machine and can accurately synchronize the guest&#8217;s clock to the host&#8217;s clock. To enable <span class="externalLink">VMware</span> Tools time synchronization in the guest:</p>
<p>1. Right-click the <span class="externalLink">VMware</span> icon in the System tray on the task bar and choose Open <span class="externalLink">VMware</span> Tools.<br />
2. On the Options tab, check the Time synchronization between the virtual machine and the host operating system box.<br />
3. Click OK to close the dialog box.</p>
<p>You can disable the Windows Time service from the Services control panel in the guest.</p>
<p>1. Right-click My Computer and choose Manage.<br />
2. Double-click Services and Applications.<br />
3. Double-click Services.<br />
4. Scroll to Windows Time; right-click and choose Properties.<br />
5. Click the Startup type selection box and choose Disable.<br />
6. If the service status is Started, click Stop.<br />
7. Click OK to close the Properties dialog box.</p>
<p>It&#8217;s a good idea to run a time synchronization tool on the host, for best accuracy. On Windows hosts, you can use the Windows Time service or other tool of your choice. On Linux hosts and in the ESX Server service console, you can run NTP. To install and configure NTP on an ESX Server machine, refer to www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1339.</p>
<p>When You Must Run Windows Time Service<br />
If you use a virtual machine as a primary domain controller for a Windows network, the primary domain controller must run the Windows Time service as a time server, to provide time to secondary domain controllers and other hosts on the network. However, that primary domain controller does not need to use the Windows Time service as a client to receive time synchronization input for its own clock. You can still use <span class="externalLink">VMware</span> Tools to synchronize the virtual machine&#8217;s clock while running the Windows Time service in a server-only mode. For instructions on setting up the Windows Time service this way, see the Microsoft document titled &#8220;The Windows Time Service,&#8221; at download.microsoft.com/download/2/0/f/20f61625-7b2a-4531-b007-1c714f1e51b7/wintimeserv.doc. Search the document for the <span class="externalLink">NoSync</span> registry option.</p>
]]></content:encoded>
			<wfw:commentRss>http://mainesysadmin.com/2007/08/02/how-to-vmware-esx-and-ntp-configuration/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>vmworld 2006 &#8211; vmware patching and securing</title>
		<link>http://mainesysadmin.com/2007/04/11/vmware-patching-and-securing/</link>
		<comments>http://mainesysadmin.com/2007/04/11/vmware-patching-and-securing/#comments</comments>
		<pubDate>Wed, 11 Apr 2007 13:34:00 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[esx]]></category>
		<category><![CDATA[vi3]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[patching]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[vmworld2006]]></category>

		<guid isPermaLink="false">http://mainesysadmin.com/blog/?p=23</guid>
		<description><![CDATA[TAC9858: Patching and Updating VMware ESX Server 3
Evan Chan, VMware and Govindarajan Soundararajan, VMware
http://download3.vmware.com/vmworld/2006/tac9858.pdf
]]></description>
			<content:encoded><![CDATA[<p><span class="externalLink">TAC9858</span>: Patching and Updating <span class="externalLink">VMware</span> ESX Server 3<br />
Evan Chan, <span class="externalLink">VMware</span> and Govindarajan Soundararajan, <span class="externalLink">VMware</span></p>
<p><a href="http://download3.vmware.com/vmworld/2006/tac9858.pdf" target="_blank" title="External link to http://download3.vmware.com/vmworld/2006/tac9858.pdf" class="externalLink" onclick="javascript:pageTracker._trackPageview ('/outbound/download3.vmware.com');">http://download3.vmware.com/vmworld/2006/tac9858.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mainesysadmin.com/2007/04/11/vmware-patching-and-securing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
