<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Office 2008 for the &#8216;executive&#8217;</title>
	<link>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/</link>
	<description>things i think of</description>
	<pubDate>Wed, 09 Jul 2008 12:03:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Rick</title>
		<link>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-315</link>
		<author>Rick</author>
		<pubDate>Thu, 24 Jan 2008 14:03:48 +0000</pubDate>
		<guid>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-315</guid>
					<description>There are six octal digits in a file mode, not five. '10' is 'regular file'. You mask the mode with octal 170000 to get the file type. The 4th from the right is indeed as you state for sticky, set UID, and set GID bits. And the rest of course is spot on. And thanks for bringing it to people's attention. Cheers.</description>
		<content:encoded><![CDATA[<p>There are six octal digits in a file mode, not five. &#8216;10&#8242; is &#8216;regular file&#8217;. You mask the mode with octal 170000 to get the file type. The 4th from the right is indeed as you state for sticky, set UID, and set GID bits. And the rest of course is spot on. And thanks for bringing it to people&#8217;s attention. Cheers.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Jim Geovedi</title>
		<link>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-340</link>
		<author>Jim Geovedi</author>
		<pubDate>Tue, 29 Jan 2008 20:08:08 +0000</pubDate>
		<guid>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-340</guid>
					<description>interesting finding... made me tried to solve the problem.

Step 1 - fix the ownership

$ sudo chown -R root:admin /Applications/Microsoft\ Office\ 2008/

Step 2: fix the executables file permission

$ sudo find /Applications/Microsoft\ Office\ 2008/ -type f -exec chmod 664 {} \;

$ sudo find /Applications/Microsoft\ Office\ 2008/ -type f &#124; while read foo; do file "${foo}" &#124; while read bar; do echo "${bar}" &#124; awk -F: '/Mach-O/ {printf "chmod 775 "%s"\n",$1}'; done; done &#124; grep -v "for architecture" &#124; sudo sh



Hope I didn't miss something.. :-)</description>
		<content:encoded><![CDATA[<p>interesting finding&#8230; made me tried to solve the problem.</p>
<p>Step 1 - fix the ownership</p>
<p>$ sudo chown -R root:admin /Applications/Microsoft\ Office\ 2008/</p>
<p>Step 2: fix the executables file permission</p>
<p>$ sudo find /Applications/Microsoft\ Office\ 2008/ -type f -exec chmod 664 {} \;</p>
<p>$ sudo find /Applications/Microsoft\ Office\ 2008/ -type f | while read foo; do file &#8220;${foo}&#8221; | while read bar; do echo &#8220;${bar}&#8221; | awk -F: &#8216;/Mach-O/ {printf &#8220;chmod 775 &#8220;%s&#8221;\n&#8221;,$1}&#8217;; done; done | grep -v &#8220;for architecture&#8221; | sudo sh</p>
<p>Hope I didn&#8217;t miss something.. <img src='http://www.brunerd.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: brunerd</title>
		<link>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-345</link>
		<author>brunerd</author>
		<pubDate>Thu, 31 Jan 2008 07:29:00 +0000</pubDate>
		<guid>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-345</guid>
					<description>Well, Microsoft added an extra step on the ownership to remove the sticky and SetUID bits before they change ownership to root:

&lt;code&gt;/usr/bin/sudo /bin/chmod -R a-st /Applications/Microsoft\ Office\ 2008 /Library/Automator /Library/Fonts/Microsoft /Library/Application\ Support/Microsoft

/usr/bin/sudo /usr/sbin/chown -h -R root:admin /Applications/Microsoft\ Office\ 2008 /Library/Automator /Library/Fonts/Microsoft /Library/Application\ Support/Microsoft&lt;/code&gt;

Full post at:
http://www.officeformac.com/blog/Security-issue-in-Mac-Office-2008-Installer

So now for your fixes, Jim, I reworked them a bit, didn't need sudo's to find the files, just to chmod them, also I went with xargs for speed, &lt;a href="http://rixstep.com/2/20080105,00.shtml" rel="nofollow"&gt;right Rick&lt;/a&gt;? :D (and does speed up the first)

Step 1: Knock all files down to rw-rw-r--
&lt;code&gt;find /Applications/Microsoft\ Office\ 2008 -type f -print0 &#124; xargs -n 1045 -0 /usr/bin/sudo chmod 664
find /Library/Application\ Support/Microsoft -type f -print0 &#124; xargs -n 890 -0 /usr/bin/sudo chmod 664
# or just simply take away x for the fonts
sudo chmod a-x /Library/Fonts/Microsoft/*
#automator contains not Mach-O executables, only Applescripts that only require read access
find /Library/Automator -type f -print0 &#124; xargs -n 1045 -0 /usr/bin/sudo chmod a-x&lt;/code&gt;

Note: -n 1045 is to prevent an error when sudo when it gets too many arguments, apparently xargs heaps them on a bit too much, longer paths means less arguments are able to be fit in

Step 2: Now find all files of Mach-O type and bump them back up to rwx-rwx-r-x
&lt;code&gt;find /Applications/Microsoft\ Office\ 2008 -type f &#124; while read foo; do file "${foo}" &#124; while read bar; do echo "${bar}" &#124; awk -F: '/Mach-O/ {print $1}' &#124; grep -v "for arch"; done; done &#124; xargs -I '{}' /usr/bin/sudo chmod a+x '{}'
find /Library/Application\ Support/Microsoft -type f &#124; while read foo; do file "${foo}" &#124; while read bar; do echo "${bar}" &#124; awk -F: '/Mach-O/ {print $1}' &#124; grep -v "for arch"; done; done &#124; xargs -I '{}' /usr/bin/sudo chmod a+x '{}'&lt;/code&gt;

The second still takes a while with all the awk and file calls on each file... but what else are you gonna do? The awk filtering works well, though, I like that. Anyhoo, it does get the job done, thanks for the push Jim!

Although now that I think of it, why would one really want write access to an executable anyway? Apart from some self modifying code for copy protection ofrserialization, it'd seem that r-x is all you really need to run a program eh? So for the more paranoid:

Find all files of Mach-O type and chmod them to r-x-r-x-r-x
&lt;code&gt;find /Applications/Microsoft\ Office\ 2008 -type f &#124; while read foo; do file "${foo}" &#124; while read bar; do echo "${bar}" &#124; awk -F: '/Mach-O/ {print $1}' 
&#124; grep -v "for arch"; done; done &#124; xargs -I '{}' /usr/bin/sudo chmod 555 '{}'&lt;/code&gt;
</description>
		<content:encoded><![CDATA[<p>Well, Microsoft added an extra step on the ownership to remove the sticky and SetUID bits before they change ownership to root:</p>
<p><code>/usr/bin/sudo /bin/chmod -R a-st /Applications/Microsoft\ Office\ 2008 /Library/Automator /Library/Fonts/Microsoft /Library/Application\ Support/Microsoft</p>
<p>/usr/bin/sudo /usr/sbin/chown -h -R root:admin /Applications/Microsoft\ Office\ 2008 /Library/Automator /Library/Fonts/Microsoft /Library/Application\ Support/Microsoft</code></p>
<p>Full post at:<br />
<a href="http://www.officeformac.com/blog/Security-issue-in-Mac-Office-2008-Installer" rel="nofollow">http://www.officeformac.com/blog/Security-issue-in-Mac-Office-2008-Installer</a></p>
<p>So now for your fixes, Jim, I reworked them a bit, didn&#8217;t need sudo&#8217;s to find the files, just to chmod them, also I went with xargs for speed, <a href="http://rixstep.com/2/20080105,00.shtml" rel="nofollow">right Rick</a>? <img src='http://www.brunerd.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> (and does speed up the first)</p>
<p>Step 1: Knock all files down to rw-rw-r&#8211;<br />
<code>find /Applications/Microsoft\ Office\ 2008 -type f -print0 | xargs -n 1045 -0 /usr/bin/sudo chmod 664<br />
find /Library/Application\ Support/Microsoft -type f -print0 | xargs -n 890 -0 /usr/bin/sudo chmod 664<br />
# or just simply take away x for the fonts<br />
sudo chmod a-x /Library/Fonts/Microsoft/*<br />
#automator contains not Mach-O executables, only Applescripts that only require read access<br />
find /Library/Automator -type f -print0 | xargs -n 1045 -0 /usr/bin/sudo chmod a-x</code></p>
<p>Note: -n 1045 is to prevent an error when sudo when it gets too many arguments, apparently xargs heaps them on a bit too much, longer paths means less arguments are able to be fit in</p>
<p>Step 2: Now find all files of Mach-O type and bump them back up to rwx-rwx-r-x<br />
<code>find /Applications/Microsoft\ Office\ 2008 -type f | while read foo; do file "${foo}" | while read bar; do echo "${bar}" | awk -F: '/Mach-O/ {print $1}' | grep -v "for arch"; done; done | xargs -I '{}' /usr/bin/sudo chmod a+x '{}'<br />
find /Library/Application\ Support/Microsoft -type f | while read foo; do file "${foo}" | while read bar; do echo "${bar}" | awk -F: '/Mach-O/ {print $1}' | grep -v "for arch"; done; done | xargs -I '{}' /usr/bin/sudo chmod a+x '{}'</code></p>
<p>The second still takes a while with all the awk and file calls on each file&#8230; but what else are you gonna do? The awk filtering works well, though, I like that. Anyhoo, it does get the job done, thanks for the push Jim!</p>
<p>Although now that I think of it, why would one really want write access to an executable anyway? Apart from some self modifying code for copy protection ofrserialization, it&#8217;d seem that r-x is all you really need to run a program eh? So for the more paranoid:</p>
<p>Find all files of Mach-O type and chmod them to r-x-r-x-r-x<br />
<code>find /Applications/Microsoft\ Office\ 2008 -type f | while read foo; do file "${foo}" | while read bar; do echo "${bar}" | awk -F: '/Mach-O/ {print $1}'<br />
| grep -v "for arch"; done; done | xargs -I '{}' /usr/bin/sudo chmod 555 '{}'</code></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: brunerd</title>
		<link>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-346</link>
		<author>brunerd</author>
		<pubDate>Thu, 31 Jan 2008 08:03:06 +0000</pubDate>
		<guid>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-346</guid>
					<description>Although dang it if now I don't realize that xargs is going line for line, because of awk, I've tried putting the grep before awk, and awking with \0 at the end and xargs with -0 but it fouls up... so #2 is still slow... perhaps a kindly hacker will show me my error, for now, it's late! And it's not my problem to fix anyway! ;)</description>
		<content:encoded><![CDATA[<p>Although dang it if now I don&#8217;t realize that xargs is going line for line, because of awk, I&#8217;ve tried putting the grep before awk, and awking with \0 at the end and xargs with -0 but it fouls up&#8230; so #2 is still slow&#8230; perhaps a kindly hacker will show me my error, for now, it&#8217;s late! And it&#8217;s not my problem to fix anyway! <img src='http://www.brunerd.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: ethan</title>
		<link>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-386</link>
		<author>ethan</author>
		<pubDate>Tue, 05 Feb 2008 16:42:18 +0000</pubDate>
		<guid>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-386</guid>
					<description>Maybe I'm missing something, but... who cares? Why would a user care if all this stuff is executable? It's not like the exe bit matters for the vast majority of purposes.</description>
		<content:encoded><![CDATA[<p>Maybe I&#8217;m missing something, but&#8230; who cares? Why would a user care if all this stuff is executable? It&#8217;s not like the exe bit matters for the vast majority of purposes.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-388</link>
		<author>Rick</author>
		<pubDate>Wed, 06 Feb 2008 01:25:37 +0000</pubDate>
		<guid>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-388</guid>
					<description>Yes no guarantees on xargs with awk. Awk awk! It's valiant of you both to tackle this one but as Joel says: 'it's not his job!' Cheers. ;)

PS. 'Find all files of Mach-O type and chmod them to r-x-r-x-r-x' - uh don't you want 'r-x-r-x---x'?</description>
		<content:encoded><![CDATA[<p>Yes no guarantees on xargs with awk. Awk awk! It&#8217;s valiant of you both to tackle this one but as Joel says: &#8216;it&#8217;s not his job!&#8217; Cheers. <img src='http://www.brunerd.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>PS. &#8216;Find all files of Mach-O type and chmod them to r-x-r-x-r-x&#8217; - uh don&#8217;t you want &#8216;r-x-r-x&#8212;x&#8217;?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-389</link>
		<author>Rick</author>
		<pubDate>Wed, 06 Feb 2008 01:26:45 +0000</pubDate>
		<guid>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-389</guid>
					<description>Oops - take that last bit back. I'm not used to working in rwx. Used to working in octal. Yes you want at least 5s all the way through and as most  on the last one.</description>
		<content:encoded><![CDATA[<p>Oops - take that last bit back. I&#8217;m not used to working in rwx. Used to working in octal. Yes you want at least 5s all the way through and as most  on the last one.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-390</link>
		<author>Rick</author>
		<pubDate>Wed, 06 Feb 2008 01:31:56 +0000</pubDate>
		<guid>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-390</guid>
					<description>PPS. Isn't it sweet to see M$ forced to do Unix? ;)</description>
		<content:encoded><![CDATA[<p>PPS. Isn&#8217;t it sweet to see M$ forced to do Unix? <img src='http://www.brunerd.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: brunerd</title>
		<link>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-395</link>
		<author>brunerd</author>
		<pubDate>Wed, 06 Feb 2008 05:43:57 +0000</pubDate>
		<guid>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-395</guid>
					<description>Ethan, you are missing something and many people do care. Do you care if your house is built on sand or rock? Do you label every bottle in your house from bleach to soda "Drink Me"? The engineers of Unix didn't just make up the executable bit just for the fun of it, it's about security. MS better be making sure they are making a secure product and not undermining basic file system security philosophies just because they haven't used PackageMaker before.</description>
		<content:encoded><![CDATA[<p>Ethan, you are missing something and many people do care. Do you care if your house is built on sand or rock? Do you label every bottle in your house from bleach to soda &#8220;Drink Me&#8221;? The engineers of Unix didn&#8217;t just make up the executable bit just for the fun of it, it&#8217;s about security. MS better be making sure they are making a secure product and not undermining basic file system security philosophies just because they haven&#8217;t used PackageMaker before.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: mackdieselx27</title>
		<link>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-446</link>
		<author>mackdieselx27</author>
		<pubDate>Thu, 14 Feb 2008 05:48:18 +0000</pubDate>
		<guid>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-446</guid>
					<description>"Do you label every bottle in your house from bleach to soda 'Drink Me'?"

Bleach supposedly leaves a bad aftertaste; maybe Ethan could enlighten us on that part.</description>
		<content:encoded><![CDATA[<p>&#8220;Do you label every bottle in your house from bleach to soda &#8216;Drink Me&#8217;?&#8221;</p>
<p>Bleach supposedly leaves a bad aftertaste; maybe Ethan could enlighten us on that part.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-496</link>
		<author>Steve</author>
		<pubDate>Sun, 17 Feb 2008 19:42:15 +0000</pubDate>
		<guid>http://www.brunerd.com/blog/2008/01/21/office-2008-for-the-executive/#comment-496</guid>
					<description>Can you confirm that in Font Book the font "Bauhaus 93" (installed by Office 2008 and also 2004 as I've seen in a store) is said to have small errors ('kern' structure or similar)?
Validate that font, I think it's a bug of Font Book in Leopard, I don't think it's corrupted, I've also replaced it with a Bauhaus 93 from a friend of mine and displays the same error in Font Book validation...
All works fine (except Font Book I think ;-) ) .</description>
		<content:encoded><![CDATA[<p>Can you confirm that in Font Book the font &#8220;Bauhaus 93&#8243; (installed by Office 2008 and also 2004 as I&#8217;ve seen in a store) is said to have small errors (&#8217;kern&#8217; structure or similar)?<br />
Validate that font, I think it&#8217;s a bug of Font Book in Leopard, I don&#8217;t think it&#8217;s corrupted, I&#8217;ve also replaced it with a Bauhaus 93 from a friend of mine and displays the same error in Font Book validation&#8230;<br />
All works fine (except Font Book I think <img src='http://www.brunerd.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ) .</p>
]]></content:encoded>
				</item>
</channel>
</rss>
