Set MacFUSE options with EncFS and password from stdin

2

Today I set up an EncFS volume and I want to automate it as much as possible. I discovered that I can pass the password via stdin with the -S switch:

echo sekret | encfs -S ~/encrypted JC /Volumes/encrypted

In addition to that I want to pass additional parameters to MacFUSE like the volume name:

encfs ~/encrypted /Volumes/encrypted -- -o volname=Encrypted

The combination of both colides. Is there a way to specify MacFUSE options and to pass the parameter from stdin?

Rafael Bugajewski

Posted 2011-06-12T13:52:15.070

Reputation: 187

Answers

2

Just pass the -o argument without passing -- first, i.e.

echo sekret | encfs -S ~/encrypted /Volumes/encrypted -o volname=Encrypted

will do the trick.

kopischke

Posted 2011-06-12T13:52:15.070

Reputation: 2 056