Assuming you’ve already enabled root in single user mode (and that you are a member of the public beta program): Here I’ll quickly cover how to enroll our un-configured Mac to receive betas from the public beta feed. Rich Trouton has a very nicely detailed article on using seedutil in High Sierra to enroll a machine into Apple’s macOS beta software update channel that is worth a read. One interesting thing we could do with this is to take an unconfigured machine with a release version of macOS and upgrade it to a beta version of macOS before it has been configured so, for instance, we could test upcoming changes in DEP enrollment. Now when we start up the machine and it is at the Setup Assistant, when we launch Terminal then change our user from _mbsetupuser to root with su. Enable opendirectory: launchctl load /System/Library/LaunchDaemons/.Mount the boot drive as read/write: /sbin/mount -uw /.Start up your machine into single-user mode.Enabling root on a machine that hasn’t gone through setup assistant But if we enable the root user ahead of time, we can elevate our permissions to do things that are more interesting. Since Terminal is launching as _mbsetupuser, we can’t do anything that requires root level permissions. The most common use would be to get the IP address of the machine while it is at Setup Assistant using either ifconfig or networksetup. Pretty much anything that doesn’t require elevated privileges. Now that we have Terminal launched, what can we do with it? Terminal will then launch as _mbsetupuser which is the user that Setup Assistant runs as. When you are in Setup Assistant, you can open Terminal or Console by pressing: Recently I became aware that you can open Terminal (and Console) from the macOS Setup Assistant via keyboard shortcuts.
0 Comments
Leave a Reply. |