Friday, August 28, 2020

Creating a MacOS administrator account when none exists

An easy and safe way create an administrator account when non-exists on MacOS is to boot into single user mode and mount the OS drive. We actually want to delete a file called the .AppleSetupDone file located in /var/db. This will cause the user wizard to run again where you can create any kind of account again after you exit or reboot out of single user mode including an administrator account.

Here are the steps:

  1. Turn on your mac pressing the "command ⌘" key + S. This will boot you into Single User Mode
  2. Mount the drive by typing /sbin/mount -uw /
  3. type rm /var/db/.AppleSetupDone
  4. type exit or reboot and it will run the account setup wizard and setup the administrator account

A powershell script to update rustdesk in action 1

For maintaining remote access for our IT systems we use a mix of action1 and rustdesk.  Though action1 has a very good remote web interface ...