To create an account in the Users folder
dscl / -create /Users/addfromcli
Create and set the shell property to bash.
dscl / -create /Users/addfromcli UserShell /bin/bash
Create and set the user’s full name. (Displayed in some of the panels/login screen)
dscl / -create /Users/addfromcli RealName "Added From Cli"
Create and set the user’s ID. (this is the unique id, you need to find out what id your last user create was and add one)
dscl / -create /Users/addfromcli UniqueID 503
Create and set the user’s group ID property. (This can be your default group)
dscl / -create /Users/addfromcli PrimaryGroupID 1000
Create and set the user home directory.
dscl / -create /Users/addfromcli NFSHomeDirectory /Local/Users/addfromcli
Set the password. (dont use password as a password)
dscl / -passwd /Users/addfromcli PASSWORD
Some more details can be found on OS X Daily
This gave me enough info to fix the Minecraft launcher. The prior answer works, but has an ugly menu name, which my son would pester me about. So instead, I fixed the Minecraft.app setup.
In a nutshell, in terminal:
cd /Applications/Minecraft/Contents/MacOS
mv JavaApplicationStub Minecraft
cat > JavaApplicationStub << EOF
#!/bin/sh
exec `dirname $0`/Minecraft "$@"
EOF
chmod +x ./JavaApplicationStub
Basically, it would appear that ParentalControls expects the application being run to match the name of the executable (which is not the case with the distributed app: It's Minecraft.app, and JavaApplicationStub), so by moving the executable to match the app name, it works. I had to create a shell script to actually exec the executable because I got "Path not found" otherwise.
This seemed to work.
I only put this here because it worked for me. If you do not understand the code block again, please keep in mind you might have to re-download the app (or make a copy first).
Best Answer
From the either account but preferably the admin account ( I will assume you are in the Admin account) you can go to the users folders.
Part 1,
Select the the managed account home folder. use cmd + i to get the info panel for the folder.
At the bottom you will see the allowed access to the folder.
This should show read & write for that user, and no access for everyone.
Click the padlock and enter your admin details.
Now click the + button and either choose your Admin account name. The admin account should now be added to the list.
Now change its access to read & write.
You should now from the Admin account be able to open the managed user account's folder but not any folder inside.
You now have a choice. Depending on what you want.
Part 2 If for example you want only to access the Documents folder and all the files and folders enclosed. Then repeat the process above Part 1 for the documents folder.
But this time, in the info panel for the documents folder, after you have completed the above Part 1 on it. You will see a action button (Cog) at the bottom of the panel below the list. Click the button and then the
Apply to enclosing items…
When you confirm, all the items in Documents folder will replicate the access given to the Documents folder.
Or you can do the above by drilling down to only the folders you are interested in using Part 1 and the final folder in that chainPart 1 & Part 2
Or of cause you can just do chainPart 1 & Part 2 on the home folder.
But I personally would just do the folders I need.