Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Parental Controls Always Allow does not work

I have enabled Parental Controls on my son's MacBook Pro (OS X 10.8.1, Mountain Lion) and have restricted the applications his account can use. Everything works fine with the exception of Minecraft (of course the application most important to him). Minecraft is marked as an application that he's allowed to use in the parental control settings.


When I try to start Minecraft under his account, a message pops up saying that he's not allowed to run it, giving the following three options:


  • Always Allow
  • Allow One Time
  • Cancel


When clicking Allow One Time, I have to enter the admin account username and password and the game starts without problems. But when I click Always Allow, it asks for the admin account as well, but then pops up the same message again. I have verified that I'm using the right admin account username and password, but it's still refusing to run the game.


When I disable parental controls, everything works, but the moment I turn it on again, it fails, despite having Minecraft in the list of allowed applications for his account.


In the Console application, I can see the following weird error message whenever this happens:


com.apple.launchd.peruser.501[148]:

([0x0-0x11c11c].com.Mojang Specifications.Minecraft.Minecraft[1216])

Job failed to exec(3) for weird reason: 13


Has anybody else experienced this or knows how to fix this?


There's a similar discussion here, but it doesn't contain a solution:

https://discussions.apple.com/thread/4012269

MacBook Pro, OS X Mountain Lion (10.8.1)

Posted on Aug 30, 2012 11:54 PM

Reply
17 replies

Sep 20, 2012 7:29 PM in response to Nils Winkler

Having the same problem. Just spent about 90 minutes in the chatroom of a very nice and helpful Minecraft tech guy. We tried everything. Finally, I just had to disable the parental controls on Apps (leaving all the other parental controls intact) and that worked, although I'm not happy with that. His conclusion was that it was a bug with Apple. There is a blog that deals with something similar, but in my case it did not help because my problem is with the app controls But here it is in case it helps someone else: .http://heednotsteve.wordpress.com/2012/01/11/how-to-enable-secure-connections-un der-mac-os-x-parental-controls/

Sep 25, 2012 12:45 PM in response to Nils Winkler

I have worked around this issue and have managed to get it to work on my son's MacBook Pro. Here's what I did:

I added a shell script called

MyMinecraft
with the following contents:


#!/bin/bash java -jar -Xms512m -Xmx1024m /Applications/Minecraft.app/Contents/Resources/Java/MinecraftLauncher.jar


After saving this file, I made it executable (either through Finder's Show Info or using

chmod +x MyMinecraft
in the Terminal) and tried running it from my son's account. It worked fine and started Minecraft. So far so good.


To make it a bit more pretty, I created a real Mac application from the script - there are multiple options for this:

  1. Platypus: http://sveinbjorn.org/platypus
  2. Create the following directory structure in the user's Application directory:
    MyMinecraft.app/Contents/MacOS
    and move the
    MyMinecraft
    script there. Now you can add the original Minecraft icon through Finder's Show Info dialog


Double-clicking the MyMinecraft icon should now start Minecraft.


Please let me know if this works for you as well.

Sep 25, 2012 11:30 PM in response to betsyfromglendale

Sure, no problem. Here's the easiest way to do it.


Create the following folder structure in Finder under the user's home folder: Applications/MyMinecraft.app/Contents/MacOS

  • To do this, first go to the user's Applications folder
  • Right-click in there, select "New Folder", name the new folder "MyMinecraft.app". Confirm that you really want to name this folder with the ".app" extension
  • Right-click the "MyMinecraft.app" folder, select "Show Package Contents". A new Finder window will open.
  • In this window, right-click again, select "New Folder", name the new folder "Contents"
  • Double click the "Contents" folder to open it
  • Right-click, select "New Folder", name the new folder "MacOS"
  • Open the TextEdit application
  • Paste in the following contents (two lines in total):

#!/bin/bash

java -jar -Xms512m -Xmx1024m /Applications/Minecraft.app/Contents/Resources/Java/MinecraftLauncher.jar


  • Save this new file in the directory you created in the first step: Applications/MyMinecraft.app/Contents/MacOS - use the following name for the new file: MyMinecraft
  • To make this file executable, open the Terminal application, and paste in the following code, followed by pressing the Enter key:

chmod +x ~/Applications/MyMinecraft.app/Contenst/MacOS/MyMinecraft

Close the Terminal window


Double-clicking the "MyMinecraft" icon should now start Minecraft.


Most of the above can be done using Platypus from the link in the above post.


All of the above works under the assumption that you have the original Minecraft application installed under /Applications/Minecraft. If it is installed in a different path, you have adjust the path in the "MyMinecraft" script accordingly.


Let me know if that worked for you.

Nov 19, 2012 2:18 PM in response to Nils Winkler

Hi Nils,


I (well, my son Alexander) just purchased Minecraft on the weekend and then we experienced the same problem that you originally described, i.e. it would only run on my son's account (under parental control) when we selected the "Allow One Time" option. Your solution then seemed to be exactly what we needed. Unfortunately, I haven't been able to follow the idiot-proof instructions that you provided. First, while logged into my son's account, I got to the point of creating the file with the 2 command lines in the TextEdit application but then couldn't save it in the previously created MacOS folder -- it wasn't "active", i.e. I couldn't navigate to it (the entire "MyMinecraft.app" folder wasn't accessible). I found a workaround by temporarily removing the "app" extension, storing the "MyMinecraft" command file in the MacOS folder, and then re-naming the "MyMinecraft" folder with the "app" extension. I then opened the Terminal application, pasted in the code you provided (Note : there's a mistake, it should be "Contents" rather than "Contenst") and pressed the Enter key. This led to the following message :

chmod: /Users/Alexander/Applications/MyMinecraft.app/Contents/MacOS/MyMinecraft: No such file or directory


Is this a result that, on our MBP, the "Applications" and "Users" folders are at the same level? Or have I done something else wrong? I would really appreciate if you could help us out. It's a little cumbersome always having to be there to grant my son permission to use Minecraft -- however, I would rather not remove the parental controls.


MacBook Pro, OS X Mountain Lion (10.8.2)

Dec 27, 2012 8:25 AM in response to Nils Winkler

I have the same problem for my son's account on an iMac i5 2011 running Lion 10.7.5. I've tried my best to follow your directions but have not been able to solve this problem.


1 - Managed to make the new app, but when you open it it gives me a warning that "PPC applications are not compatible witht his system". No idea why it would think that this new script/app would be thought of as a Power PC app.


2 - Downloaded Platypus, but wasn't able to use it, don't know what fields to fill in.



Please help, thank you i greatly appreciate it. Sincerely, Eric

Feb 21, 2013 1:25 PM in response to Nils Winkler

When you use /Applications/Utilities/Console.app to watch for errors and get:


Job failed to exec(3) for weird reason: 13



...it is usually a permissions issue. The symptom is that you will click on an application and it will not launch at all. You will need to make the application binary executable for the current user.



I do this by opening /Applications/Utilities/Terminal.app and running the following command:



chmod u+x <Application.app>/Contents/MacOS/<application binary>



`<Application.app>` needs to be changed to the location of the app, and `<application binary>` needs to be changed to the name of the binary.



For Minecraft, if it is located in the root `/Applications` folder, the command would be:



chmod u+x /Applications/Minecraft.app/Contents/MacOS/JavaApplicationStub



If it is located in `/Users/jsmith/Applications`, where `jsmith` would be your username on your Mac, the command would be:



chmod u+x /Users/jsmith/Applications/Minecraft.app/Contents/MacOS/JavaApplicationStub



`chmod` is the command to change file modes or Access Control Lists. You can read the manual for `chmod` by running the command: `man chmod` In this case, we are allowing the file to be executed by the current user. So `u+x` means "user add executable permission." If you would like to make the file executable for all users, then you would change `u+x` in the above commands to be `a+x`.



I hope this helps.


If you are an Apple StackExchange user, I also posted this answer here:

http://apple.stackexchange.com/a/82982/39809

Apr 19, 2013 2:21 AM in response to Nils Winkler

Hi there Nils.

Thank you for the work you did above. i can get minecraft to run on my parental controlled account using the:


java -jar -Xms512m -Xmx1024m /Applications/Minecraft.app/Contents/Resources/Java/MinecraftLauncher.jar


command in terminal.


i also set up the MyMinecraft app, unfortunately when i tried to run it I was informed by finder:


You can't open the application "MyMinecraft" because PowerPC applications are no longer supported


I note you are also on OSX Mountain lion, do you have any ideas?


Thank you


Jonathan

Jun 14, 2013 11:50 AM in response to Nils Winkler

Hello all!


I may have found a way to use this workaround without the PowerPC error coming up. It worked for me with a new iMac running Mtn Lion with Parental Controls enabled. Here is what I did:


1. Login to the account that has the Parental Controls enabled (ie the standard user not the admin user)

2. Open the Automater App. Easiest way is to click on Spotlight (the magnifying glass in upper right corner) and type Automator into the search field, then select the app that comes up. You may have to enter your admin credentials if this app is restricted in Parental Controls.

3. In the initial screen that opens, select "Application" from the options listed, and then hit the "Choose" button.

4. In the top search field enter "Shell", and you should see "Run Shell Script" come up as a valid action.

5. Drag that action over to the right workflow area

6. You shoud see "cat" as the default command - highlight that and delete it. Then paste the command referenced above into the shell code area:


java -jar -Xms512m -Xmx1024m /Applications/Minecraft.app/Contents/Resources/Java/MinecraftLauncher.jar


7. Then select the "Options" button towards the bottom of the workflow object and select the "Ignore this actions input" checkbox.

8. Hit the "Run" button in the upper right of the window to test your script - if everything is working it should launch Minecraft.

9. If it was successful, select the File Menu and select "Save". Call the workflow "MyMinecraft" and save it on the desktop using the "Application" file format option.

10. Double click on the new Desktop icon called MyMinecraft to run it. When the Parental Controls message comes up, select "Always Allow" and enter your password.

11. To customize you can enen change the icon to the Minecraft icon using the "Get Info" option for both apps and copy and paste the icon image.


That's it. It worked for me and launched consistently with Parental Controls enabled. I hope it works for all of you as well.


Thanks!

--Rick

Jun 26, 2013 5:12 PM in response to Nils Winkler

Nils -- I am seeing this problem with another "wrapper" app that has 'self modifying/updating' code ... SPORE. I have figured out that in this case the only way to get the program to work on my kids IDs with parental controls is to select "Allow Once" -- just like the original MineCraft case. I figured out this is actually because the code signature is invalid for the app due to the wrapper approach.


In an effort to try and find a more generic resolution, I was wondering if you might look at the orignal MineCraft.app and see if it shows the same problem ... if so, we may be able to get Apple to tell us how to get Parental Controls to update the signature and allow the app permanently (as a more generic fix/workaround).


In terminal -- what does the following show ?

$ codesign -dvvvv /Applications/MineCraft.app


In my failing case for SPORE I get the following:

$ codesign -dvvvv /Applications/SPORE/SPORE.app

/Applications/SPORE/SPORE.app: invalid signature (code or signature have been modified)


For a working case (as an example) I get the following:

$ codesign -dvvvv /Applications/iPhoto.app

Executable=/Applications/iPhoto.app/Contents/MacOS/iPhoto

Identifier=com.apple.iPhoto

Format=bundle with Mach-O thin (i386)

CodeDirectory v=20100 size=73825 flags=0x200(kill) hashes=3683+5 location=embedded

Hash type=sha1 size=20

CDHash=1b9534433700f71e42b8491b9cee9e4cbd34515f

Signature size=4169

Authority=Apple Mac OS Application Signing

Authority=Apple Worldwide Developer Relations Certification Authority

Authority=Apple Root CA

Info.plist entries=35

Sealed Resources rules=21 files=2617

Internal requirements count=2 size=1484


In these failing cases, the "wrapper" is signed but since the java or other code gets updated, it makes the signature invalid and parental controls will not allow this as a permanent exception.........


-- mhren

Parental Controls Always Allow does not work

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