<?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>Bohack &#187; Microsoft</title>
	<atom:link href="http://www.bohack.com/tag/microsoft/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bohack.com</link>
	<description>Check In and Tune Out!</description>
	<lastBuildDate>Wed, 24 Feb 2010 18:55:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Dell OpenManage Problem &#8211; Hangs at Precopy Preparation</title>
		<link>http://www.bohack.com/2010/01/dell-openmanage-problem-hangs-at-precopy-preparation/</link>
		<comments>http://www.bohack.com/2010/01/dell-openmanage-problem-hangs-at-precopy-preparation/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 21:39:11 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=375</guid>
		<description><![CDATA[The Dell OpenManage DVD will hang at Precopy Preparation if burnt improperly to a DVD.]]></description>
			<content:encoded><![CDATA[<p>When you purchase a Dell server you can purchase the Open Manage software, so they ship you media. OpenManage is the software that installs the maintenance partition and the automated install of the operating system as well as firmware updates. However if you did not get media with your server or want the latest version of software; you might run into a problem if you download the software with Internet Explorer and never read the instructions.</p>
<p><span id="more-375"></span>If you are looking for the latest OpenManage software for you servers, the first step is to go to http://support.dell.com and click on “Drivers and Downloads”. Next you will be prompted for the service tag or model of you unit you need to download Open Manage for. You will want to select “Systems Management” and search for “DVD ISO &#8211; Dell Systems Management Tools and Documentation”. You will want to select &#8220;More Download Options” from the right hand side. This selection might prompt you for the service tag since the OpenManage is model specific; so have the service tag handy.</p>
<p>Here you will find DVD ISO Image files; OM_6.2.0_SMTD_A00.iso.001 and OM_6.2.0_SMTD_A00.iso.002. These files are not ISO files they are actually half of the ISO file. So if you burn the first file you will boot up and be functional until you get to the “Precopy Preparation” where you will hang around 15% or 17%.</p>
<a href="http://www.bohack.com/wp-content/uploads/2010/01/dell-precopy-hang.jpg"  rel="lightbox[375]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2010/01/dell-precopy-hang.jpg" alt="Dell Precopy Preparation Hang" title="dell-precopy-hang" width="400" height="293" class="aligncenter size-full wp-image-379" /></a>
<p>In order to fix the problem of OpenManage hanging at the “Precopy Preparation” stage: download both the files 001 and 002. Place them in a folder where you will concatenate them into one file. This process you will find under the instructions, however it is not documented anywhere else on the download page. So you think there are two separate ISO files and burn them only to find the first boots and hangs.</p>
<p>Dell does this to address a browser limitation around downloading large files (see Microsoft KB article 298618: You cannot download files that are 2 GB or larger &#8211; <a href="http://support.microsoft.com/kb/298618" target="_blank">http://support.microsoft.com/kb/298618</a>). Dell Systems Management Tools and Documentation DVD is no longer available as a single ISO for web download.</p>
<p><strong>Process:</strong></p>
<p>1. Download the two ISO file segments to an empty folder.<br />
2. Run the command to concatenate them into one file.</p>
<pre>copy /b OM_6.2.0_SMTD_A00.iso.001+OM_6.2.0_SMTD_A00.iso.002 OM_620_SMTD_A00.iso</pre>
<p>3. Burn the OM_620_SMTD_A00.iso file to DVD.</p>
<p>If you are running Linux the command is:</p>
<pre>Linux: cat OM* &gt; OM_620_SMTD_A00.iso</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2010/01/dell-openmanage-problem-hangs-at-precopy-preparation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mastering Permissions with icacls.exe Command thru the GUI</title>
		<link>http://www.bohack.com/2009/12/mastering-permissions-with-icacls-exe-command-thru-the-gui/</link>
		<comments>http://www.bohack.com/2009/12/mastering-permissions-with-icacls-exe-command-thru-the-gui/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 15:41:37 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[CMD]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=350</guid>
		<description><![CDATA[The key to mastering permissions at the command line in Vista and Windows Server 2008 Server is learning the icacls.exe command. With the introduction of Windows Vista, you can no longer select multiple items like folders and files and apply permissions to a group of objects.]]></description>
			<content:encoded><![CDATA[<p>The key to mastering permissions at the command line in Vista and Windows Server 2008 Server is learning the icacls.exe command. With the introduction of Windows Vista, you can no longer select multiple items like folders and files and apply permissions to a group of objects. The recommended way is to use the command line and the icacls.exe command.</p>
<p><span id="more-350"></span><br />
The icacls.exe command was introduced in Windows 2003 Service Pack 2. It now comes installed by default in Windows Vista, Windows Server 2008 (R2) and Windows 7. So administrators will need to learn this command sooner or later. Recently I found the tool to be very flexible and I extensively documented the options. I mapped the different command line options to the GUI, for the network admins that need the GUI to understand how to use the command line.</p>
<p>The first point that should be made about icacls.exe is that it defaults to edit mode. The original cacls command defaults to replace mode. Next are the commands:</p>
<pre>/grant will grant user permissions or the add option in the GUI.
/remove will remove the user from the DACL and is equivalent to
 the remove option in the GUI.

Note: /remove:g will remove only grants for the user
      and /remove:d will remove only denys for the user.

/deny is equivalent to the deny column in the GUI
 and should always be used cautiously.
/setowner is a handy little command which allows you to change
 the ownership of a file or folder to another user;
 this is similar to the linux chown command.
/findsid which finds entries in a DACL for a specified SID or user.
/setintegritylevel is a bit out of the scope of this article
 and may be in a future article.</pre>
<p>The icacls command also has an /inheritance command which performs the same function as un-checking the “Include inheritable permission from this object’s parent” in the GUI. This of course presents you with the question of how to proceed; copy the permissions or remove all existing permissions. So the command line you can specify:</p>
<pre>/inheritance:e to enable same as a check box in the GUI.
/inheritance:d to disable and copy the permissions
 from the parent same as the GUI.
/inheritance:r to disable and remove the
 current permissions again same as the GUI.</pre>
<a href="http://www.bohack.com/wp-content/uploads/2009/12/icacls-gui.jpg"  rel="lightbox[350]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/photojar/cache/icacls-gui-150x150-1-img355.jpg" alt="Windows GUI mapped to icacls commands" title="icacls-gui" width="150" height="150" class="aligncenter size-thumbnail wp-image-355" /></a>
<p>The next thing to learn is how inheritance is propagated for permissions. When using either the /grant or /deny statement you will build the permissions as <em>/grant {user}:{inheritance}{permissions}</em> everything is encapsulated by parenthesis. The default in Windows when applying permissions in the GUI is “This folder, subfolders and files”, but to achieve the default at the command line you need to use <em>/grant {user}: (OI)(CI){permissions}</em> and the permissions should be encapsulated in parenthesis. The table below is to help you formulate your inheritance for permissions:</p>
<pre>This folder only
This folder, subfolders and files (OI)(CI)
This folder and subfolders (CI)
This folder and files (OI)
Subfolders and files only (OI)(CI)(NP)(IO)
Subfolders only (CI)(IO)
Files only (OI)(IO)</pre>
<p>The last thing to learn is the permissions. You can use macro permissions, which are also called simple permissions or you can use advanced permissions. The simple permissions are the permissions found in the first properties tab under security. The advanced permissions are when you select advanced and you get the full permissions list. So building on the permissions line from above; if we wanted to grant testuser on the folder test and apply modify permissions so all subfolders and files inherited the permissions. The line would be ‘<em>icacls test /grant testuser:(OI)(CI)(M)</em>’</p>
<pre>Simple Permissions

Full Control (F)
Modify (M)
Read &amp; Execute (RX)
List Folder Contents (X,RD,RA,REA,RC)
Read (R)
Write (W)

Advanced Permissions

Full Control (F)
Traverse folder / execute file (X)
List folder / read data (RD)
Read attributes (RA)
Read extended attributes (REA)
Create file / write data (WD)
Create folders / append data (AD)
Write attributes (WA)
Write extended attributes (WEA)
Delete subfolders and files (DC)
Delete (D)
Read permissions (RC)
Change permissions (WDAC)
Take ownership (WO)</pre>
<p>When you master this command you will be able to do anything with permissions from the command line. Including understanding the SDDL or Security Descriptor Definition Language; which Microsoft uses to create group policy permissions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2009/12/mastering-permissions-with-icacls-exe-command-thru-the-gui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X Permissions Problems with Window Server 2003 R2</title>
		<link>http://www.bohack.com/2009/12/mac-os-x-permissions-problems-with-window-server-2003-r2/</link>
		<comments>http://www.bohack.com/2009/12/mac-os-x-permissions-problems-with-window-server-2003-r2/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 03:11:34 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=336</guid>
		<description><![CDATA[A user on a Mac OS X client with not be able to drag files into the folder or perform a copy procedure and will result in the error: "You may need to enter the name and password for an administrator on this computer to change the item name "item-name".".]]></description>
			<content:encoded><![CDATA[<p>Recently I found a problem when using Mac OS X and Windows Server 2003 R2 as a file server. The problem exists in the permissions that are applied to user folders. When applying permissions to shares you normally start out with a very restrictive permission structure at the top. As you create the folders you add permissions for users and groups to permit and restrict access for others. This structure of permissions is very common in dealing with corporate shares. We also share the folder with ‘domain users’ only having change or modify access to the entire share. This eliminates people applying their own permissions and locking everyone out including themselves. This is a common task for a network admin in setting up permissions.<br />
<span id="more-336"></span><br />
We have a Windows Server 2003 R2 file server with a directory called ‘Drives’ this directory is shared with ‘Domain Admins’ and ‘System’ Full Control and ‘Domain Users’ Change Control. Under this directory the permissions are structures as follows at the NTFS level. Domain Users have Read permissions only to the folder and does not inherit down to other folders. This allows a Domain User to read the directory names, but not access the contents in each of the folders. Each folder at this level is names according to the user that owns the content. On these folders we add the domain user’s username with Change control and we allow the permissions to inherit to all child folders and file below.</p>
<p>The problem exists when you use a script to create the folders and apply the permissions using the cacls.exe command on a Windows 2003 R2 server. A user on a Mac OS X client with not be able to drag files into the folder on a Windows 2003 R2 server share or perform a copy procedure and will result in the error: <strong>&#8220;You may need to enter the name and password for an administrator on this computer to change the item name &#8220;item-name&#8221;</strong>.&#8221;. You may also see the exclamation error if the file has a preview fork attached of <strong>&#8220;Couldn&#8217;t open the file. It may be corrupt or a file format that Preview doesn&#8217;t recognize.&#8221;</strong>. After much reading on this problem I was almost convinced that it was an OS X bug, but I realize now it is actually a flaw in the cacls command. We use a script similar to the snippet of code below to create the directories.</p>
<pre>mkdir \\server\share\userdir
cacls \\server\share\userdir /e /t /g userdir:c

explanation:

cacls {file or folder} /e {edits} /t {changes on all sub directories} /g {grants} userdir:c {user:permission of change}</pre>
<p>The problem was solved using the command that was introduced in Vista and Server 2003 R2 called icacls.exe. The icacls tool is now included in Windows Server Service Pack 2 and is standard in Vista. This command allows you to set inheritance, which is the root cause of the problem. The inheritance properties were first introduced in NTFS 5.0 with Windows 2000, however something has changed recently in the OS X 10.5 software or Windows Server 2003 R2. The problem also exists in Windows Server 2008 and Windows Server 2008 R2 so the problem is not going away and I am guessing it is OSX at fault.</p>
<p>When setting a directory with the code above, if you use the icacls command to export the permissions structure out to a file you can see the problem. This will export the security into Microsoft’s SDDL language which is documented here http://msdn.microsoft.com/en-us/library/aa379567(VS.85).aspx.</p>
<pre>icacls.exe \\server\share\userdir /save aclfile.txt

notepad.exe aclfile.txt

D:(A;OICI;0x1301bf;;;S-1-5-21-123456789-123456789-123456789-12345) (A;OICIID;FA;;;DA)(A;OICIID;FA;;;SY)
(user:chage) (domain admin:full) (system:full)</pre>
<p>The problem is not is not evident until we set the permission properly with the icacls.exe command.</p>
<pre>icacls \\server\share\userdir /t /c /grant userdir:(OI)(CI)M

explanation:

icacls {file or folder} /t {changes on all sub directories} /grant {grants} userdir:(OI)(CI) {see below}M { change/modify }

CI CONTAINER INHERIT
OI OBJECT INHERIT
NP NO PROPAGATE INHERIT
IO INHERIT ONLY
ID INHERITED
SA SUCCESSFUL ACCESS FLAG
FA FAILED ACCESS FLAG

Complete list http://msdn.microsoft.com/en-us/library/aa374928(VS.85).aspx

D:AI(A;OICI;0x1301bf;;;S-1-5-21-123456789-123456789-123456789-12345) (A;OICIID;FA;;;DA)(A;OICIID;FA;;;SY)

Explanation:

D: - Defines the DACL
AI - is the MISSING Auto Inheritance Flag
(A;OICI;0x1301bf;;;S-1-5-21-123456789-123456789-123456789-12345) - is the user’s SID and permissions
(A;OICIID;FA;;;DA) - is the “Domain Admin” permissions identified by the trailing DA
(A;OICIID;FA;;;SY) - is the “System” permissions identified by the trailing SY</pre>
<p>The AI in the DACL or Discretionary Access Control List is missing when using the cacls command. My guess is that the client when using Windows is responsible for the completion and writing of the DACL. When a Mac OS X client copies a file they utilize SAMBA which does not carry the DACL and consequentially fails. This would explain the empty file that gets created when an OS X client drags and drops the file. The file entry gets created, but is inherited with only the original permissions that have inheritance from above. This same problem could also exist on Linux or UNIX using SAMBA since it is SAMBA that drops the ball.</p>
<p>The Fix:</p>
<p>Use ‘icacls \\server\share\userdir /t /c /grant username:(OI)(CI)M’ to grant access to NTFS folders and replace all entries in scripts using the cacls command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2009/12/mac-os-x-permissions-problems-with-window-server-2003-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
