

Pass '-' instead of password in commands above to request prompt.
#Option + r mac os x mac os x
10:37:26.434 sysadminctl Boot volume APFS FDE: YESThe help page is as follows: As of version 4.2 of TIBCO Enterprise Runtime for R runs in the Apple Mac OS X version 10.10 (Yosemite) or later. Restart your Mac and hold down the Command + R keys until the Apple logo appears. 10:37:26.401 sysadminctl Boot volume CS FDE: NO You can also use sysadminctl to do a quick check of the encryption state of the boot volume using the -filesystem option (although there’s no on and off verb for this option just yet): If your Mac has a T2 security chip, you can release the keys after the Apple logo appears and disappears on screen for the second time. Wait 20 seconds and release the keys or, if your Mac plays a startup chime, release the keys after the second chime. Sysadminctl -secureTokenStatus charles.edge 2>&1 | awk ''To then disable if it isn’t already disabled: Shutdown your Mac then press the power button while holding Command-Option-P-R. To just get the ENABLED response we’ll just use awk to grab that position (also note that we have to redirect stderr to stdout): Secure token is ENABLED for user Charles Edge Simply pass the RecordName and you’ll get an indication if it’s on or off:

To see if it can unlock FileVault we can use the -secureTokenStatus operator built into sysadminctl. Restart the MacBook Air by holding down the power button until you hear the startup chime, then immediately hold down Command-Option-R. But if it were, you would not have the AuthenticationAuthority attribute. Notice that the above is not the whole record you’d typically find with dscl. read /Users/krypted2Here’s a snippet of the dscl output: We could have passed those as well, using Now let’s use dscl to view the user we just created:ĭscl. Notice that in the above, the system automatically selected a home directory and UID. No clear text password or interactive option was specified (adduser, change/reset password will not allow user to use FDE) !Ĭreating home directory at /Users/krypted2

Sysadminctl -addUser krypted2 -fullName "Charles Edge" -password testinguser -hint hi In the below command, we’ll pass the -addUser option and then use -fullName to fill in the displayed name of the user, -password to send a password to the account and -hint so we can get a password hint into that attribute: You have to do so with other admin accounts per Apple kbase HT208171 (in fact, this article has been in my queue waiting for that issue to be fixed – but keep in mind I’m not prefacing these with sudo in the below commands). However, you can’t do these tasks as root or via sudo. Now you can create a user with a one-liner, and do other forms of user management, such as enabling FileVault for a given user, or managing the guest accounts. MacOS 10.13 brings changes to sysadminctl. You know those dscl scripts we used to use to create users? No longer supposed to be necessary (luckily they do still work).
