Quantcast
Channel: rtrouton – Der Flounder
Viewing all articles
Browse latest Browse all 764

Enabling root on a Mac which hasn’t gone through macOS Catalina’s Setup Assistant

$
0
0

On certain occasions, it may be necessary to configure settings on a Mac which has not yet gone through Apple’s Setup Assistant. This process usually involves enabling the root account and setting a password for it, since no user accounts with admin rights exist yet. For more details on how to do this on macOS Catalina, please see below the jump.

To enable the root account and set a password for it, use the procedure described below:

1. Start up the Mac into single-user mode.
2. Mount the boot drive’s writable volume using the following command:

/sbin/mount -uw /System/Volumes/Data

Screen Shot 2019 10 11 at 4 12 03 PM

3. Launch the opendirectoryd process using the following command:

launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist

Screen Shot 2019 10 11 at 4 12 46 PM

4. Enable the root account using the following command:

passwd root

Screen Shot 2019 10 11 at 4 13 10 PM

5. Set a password for the root account when prompted.

Screen Shot 2019 10 11 at 4 13 47 PM

6. Reboot the Mac using the following command:

reboot

Screen Shot 2019 10 11 at 4 13 58 PM

Once rebooted and back at Setup Assistant, you can open the Terminal by pressing the following keys on the keyboard:

CTL + OPTION + CMD + T

Magic keyboard ctl option command t

Screen Shot 2019 10 11 at 4 16 18 PM

Once Terminal opens, run the following command to switch to using the root user account:

su root

When prompted, enter the password you had earlier set for the root account.

Screen Shot 2019 10 11 at 4 16 33 PM

Once your need for using the root account has ended, I strongly recommend disabling the root user account. Apple has a KBase article which describes how to disable the root account, available via the link below:

https://support.apple.com/HT204012


Viewing all articles
Browse latest Browse all 764

Trending Articles