-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Labels
Description
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
Reactions are currently unavailable