Jump to content

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


Pehem17260
 Share

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

Link to comment
Share on other sites

 Share

×
×
  • Create New...