

This will create an account "joeadmin", account ID 510, with password "password" which will be an administrator.How to setup an Exchange mailbox on a mac append /Groups/admin GroupMembership joeadminĭseditgroup -o edit -a joeadmin -t user admin create /Users/joeadmin NFSHomeDirectory /Users/joeadminĭscl.

create /Users/joeadmin PrimaryGroupID 20ĭscl. create /Users/joeadmin UniqueID "510"ĭscl. create /Users/joeadmin RealName "Joe Admin"ĭscl. create /Users/joeadmin UserShell /bin/bashĭscl. Launchctl load /System/Library/LaunchDaemons/ĭscl. When the system boots up and prompt #root is displayed type following commands:

use Single User Mode and use command line tools to directly create a new user and make it a member of administrator group:įirst you boot in Single User Mode ( Cmd S at boot).When the system boots, Setup Assistant will be shown and you will be prompted to create a new administrative account. Note the yellow volume name (usually Macintosh HD) and type following in Terminal (with appropriate volume name entered): rm /Volumes/Macintosh\ HD/var/db/.AppleSetupDoneĮject the yellow volume and use power button to shutdown and restart your Mac.
#SETUP EXCHANGE ACCOUNT ON MAC FULL#
On the other Mac you will see a yellow icon representing an external disk (but is actually the internal disk of your Mac in Target Disk Mode) which you can access with full read/write capabilities. If you have another Mac available, you can use Target Disk Mode ( T at boot) and connect FireWire, Thunderbolt or USB-C cable between the Macs. When the system boots, Setup Assistant will be shown and you will be prompted to create a new administrative account.Ĭ) use Target Disk mode with another computer First you boot in Single User Mode ( Cmd S at boot). When the system boots, Setup Assistant will be shown and you will be prompted to create a new administrative account.ī) use Single User Mode. Press Enter, quit Terminal and restart your Mac. Close Disk Utility, launch Terminal from the menu and type following command: rm /var/db/.AppleSetupDone Select your system volume (usually named Macintosh HD) and click Mount button on the toolbar. First you boot in Recovery Partition ( Cmd R at boot) and select Disk utility from the Utilities window. You can make Setup Assistant run in (at least) three ways:Ī) use Terminal in Recovery. If you need to retain access to the original account without knowing its password, this may mess that up. Note that this may result in the new account being logging in automatically when the system is restarted, replacing whatever account may have been set to automatically log in previously. If the file is missing macOS will launch the Setup Assistant which includes the creation of a new account with administrative privileges (same as on first boot of a new Mac). The goal is to remove a flag file /var/db/.AppleSetupDone which tells macOS that the Setup Assistant has already completed.

Remove the Apple Setup Done file by typingĬomplete the setup process, creating a new admin account. Mount the drive as read-write by typing /sbin/mount -uw / then ↩ enter. (If you end up back on the login screen after a flash of the black screen with white lettering, enter your password and it will return to the black screen.)Ĭheck and repair the drive by typing /sbin/fsck -fy then ↩ enter - as directed by the on-screen text. As soon as you hear the startup tone, press and hold ⌘ + S until you see a black screen with white lettering. You can create a new administrator account by restarting the Setup Assistant:īoot into Single User Mode: Start/restart your Mac.
