Skip to content

Error message tells you to use the wrong argument #439

@crowtrobot

Description

@crowtrobot

While testing how I could automate unlocking some files in a script, I tried to pass in a password from stdin, and got an error saying I have to tell it which protector that password goes with:

$ echo abc | sudo fscrypt unlock test1/ --quiet
[ERROR] fscrypt unlock: multiple protectors available

Use --protector=MOUNTPOINT:ID to specify a protector.

The problem is that --protector is not the right switch to use.

$ echo abc | sudo fscrypt unlock --protector=/mnt/ceph:3ebd7d4bd4de24bf test1/ --quiet
fscrypt unlock: flag provided but not defined: -protector

It looks like the correct switch is --unlock-with:
$ echo abc | sudo fscrypt unlock --unlock-with=/mnt/ceph:3ebd7d4bd4de24bf test1/ --quiet
^ that one works

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions