how to disable Show Package Contents option?

One of the kids at the school I manage figured out how to unlock any program I've disabled via Workgroup Manager by editing a certain string in the info.plist file found within the packages of all applications. So I would like to remove the "Show Package Contents" option from the contextual menu in the Finder on all of the kids' machines. Is there perhaps some terminal command I could push out to the MacBooks via Apple Remote Desktop? Some hidden trick in Workgroup Manager? Any help is greatly appreciated!

Quad Core Intel Xserve, Mac OS X (10.4.10), 1 Tiger Server, 132 MacBook Tiger clients

Posted on Dec 6, 2007 11:20 AM

Reply
3 replies

Dec 6, 2007 7:01 PM in response to Entrenched

Change the permissions on each of the Info.plist files so that they can't be written to; if the Show Package Contents option is disabled, the contents are still visible through the use of Go to Folder in the Go menu. A Terminal command such as:

chmod 755 /Applications/*.app/Contents/Info.plist

may work, but may also need to be run as root.

(26695)

Mar 3, 2008 8:30 PM in response to Entrenched

Unfortunately, you can't remove it (However you could rename it to something else). Here is a workaround to your problem.

1. Make sure all applications you want to manage are in a folder that your users have read only access to (such as /Applications).
2. By default, any properly installed app will have permissions root:admin rwxrwxr-x. If not, make sure they do.
3. In the terminal cd into /Applications/ ___.app/Contents/MacOS
4. Run the command: sudo chmod o-r _____ (Fill in the blank with the name of the app without the .app extention).

Here is the logic behind this. As long as the apps are in a folder the users only have read access to, such as /Applications, the only way they can edit that info.plist file is to copy the app to their home directory and then edit it. You are now preventing this by taking away their read (and therefore copy) ability to the most important part of the application, the executable. Now they will still be able to execute the app but not read/copy it. If they try, they will need to provide an admin code.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to disable Show Package Contents option?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.