Jump to content
Sign in to follow this  
Followers 0
Pehem17260

I can't create a admin after "Data & Privacy" troubleshooting

1 post in this topic

Recommended Posts

Hello
I've made a vanilla install with Mojave (10,14,3).
I boot and after "Data and privacy" reboot.
I follow the tutorial and I' can'create a admin user.
I've waited a script but nothing work.
a idea ?
The script
#!/bin/sh
# Script.sh
#
#
# Created by Pascal MELIN on 06/04/2019.
#
#!/bin/sh
rm /var/db/.AppleSetupDone &&
launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist &&
dscl . -create /Users/temp
dscl . -create /Users/temp UserShell /bin/bash
dscl . -create /Users/temp RealName "Temp User"
dscl . -create /Users/temp UniqueID "510"
dscl . -create /Users/temp PrimaryGroupID 20
dscl . -create /Users/temp NFSHomeDirectory /Users/temp
dscl . -passwd /Users/temp password
dscl . -append /Groups/admin GroupMembership temp
dseditgroup -o edit -a temp -t user admin
shutdown -r +0

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

×