« Microsoft's Corporate Period | Main | Et Tu Wal-Mart? »

Why do people keep doing this?

So, some time ago, I called out Flip4Mac because their installer did a dumb thing.

it was a situation that Mac OS X 10.5 fixes, but still exists in 10.4. Lots of people know about it. So you think, ahh, with Office 2008 FINALLy being a package installer instead of that VISE shite, and the Office 2008 Resource Kit specifically talking about deploying via Apple Remote Desktop, it didn't even occur to me that this would happen again. Because I know the Mac BU tests on Mac OS X 10.4. I know they use Apple Remote Desktop. There have been many articles showing the "Wall Of Minis" in their test lab where they specifically talk about using Apple Remote Desktop. So obviously, the Flip4Mac thing won't happen.

I was so wrong

What you should never see

What's the culprit? Well deep in the Office 2008 mpkg, is a sub-package called Office2008_en_dock.pkg. Inside that, in Contents/Resources/ is a postflight script, and this is where all the magical Dock modifications happen. The installer quits the dock, mods it, and restarts it. In Mac OS X 10.5, if you're not logged in, nothing happens. In Mac OS X 10.4? Look at the picture. Initially, all that was there was the Dock. Click on the Finder icon, voila...full root access sans any login.

How to stop? Easy. Comment out line 43, osascript -e 'delay 0.25' -e 'tell application "Dock" to activate', and the Dock won't start. I'd comment out line 16, osascript -e 'tell application "Dock" to quit' -e 'delay 0.25' too, as it's useless, at least to me.

This is truly a Mencia bug.


Technorati Tags:
, , , , ,


Categories:     Mac Matters
Posted by John C. Welch at 12:09 | Permalink



Comments

Warning for Notes users: The commenting system uses HTML.
I know this will be scary for some of you, especially Notes fans. However, open standards, rah-rah.
If you want to use less-than or greater-than signs, or other similar characters that HTML reserves,
you'll simply have to learn to do it the HTML way. Luckily, HTML is kind of popular, no matter what
your re-educators have told you, and you can easily find help on the intertubes.
digital.forest Where Internet solutions grow

There, a PayPal Button.

Bing
About the Author
How I do stuff on this site
Family
The Artwork of Melissa Findley
Diane Francis @ the National Post Eric Francis @ the Calgary Sun

BUY MY BOOK! BUY MY BOOK!
Non-DRM eBook PDF:
Get it direct from Peachpit!

Kindle Version:


Dead Tree Version:


Apple Amazon Links
Mac OS X Server 10.6 Snow Leopard

Mac OS X 10.6 Snow Leopard

Mac OS X 10.6 Snow Leopard Family Pack (5-User)

Amazon Book Links
Legacy of Ashes: The History of the CIA

The Donnas: Bitchin'

Wizards at War (The Young Wizards, Book 8)

The Demon's Sermon on the Martial Arts

The Collected Stories of Arthur C. Clarke

JavaScript and Ajax for the Web, Sixth Edition

Awakening Warrior: Revolution in the Ethics of Warfare

FOB Links

Mac Web Writers

Techie Links

Review Victims