1

I've been reading about using the fdsetup command to manage FileVault2 from the command line. But I can't find it in Mojave (or High Sierra for that matter).

Is there a command line interface to FileVault2?

  • What do you mean with "can't find it"? Do you get an error when running it from the command line? – nohillside May 1 at 13:39
  • 1
    @nohillside, gctwnl probably means when running fdsetup it returns -bash: fdsetup: command not found as the actual command name is fdesetup not fdsetup. Note in the OP the command is missing an e. – user3439894 May 1 at 13:49
  • @user3439894, yes that was what I meant. See comment under the answer below for what I ended up using. – gctwnl May 2 at 12:53
2

The command you want is: fdesetup

From its manual page:

fdesetup(8)                    BSD System Manager's Manual

NAME
        fdesetup -- FileVault configuration tool

SYNOPSIS
        fdesetup verb [options]

DESCRIPTION
        fdesetup is used to enable or disable FileVault, to list, add, or remove enabled FileVault users, and to obtain status about the current state of FileVault. Most commands require root access and need to be authenticated with either a FileVault password, a personal recovery key (if enabled), and in some cases the private key from the installed institutional recov- ery key. Some status related commands can be run from a non-root session.

  • Yep, it was that simple, I had misread. In the end, I used sysadminctl (no man page, type sysadminctl -help) to manage SecureTokens (which is what I needed to do). Probably not meant to be used directly, but it did what I needed. – gctwnl May 2 at 12:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .