[pass] Shared Pass store for multiple users/pubkeys

David Adam zanchey at ucc.gu.uwa.edu.au
Tue May 12 13:48:49 CEST 2015


On Tue, 12 May 2015, Ville Mattila wrote:
> On 12/05/15 13:42, Jason A. Donenfeld wrote:
> > Will this do it for you?
> > 
> > http://git.zx2c4.com/password-store/commit/?id=4690a3021cf74b2093d296f48f205b6706f82f2a
> 
> Thanks! For my specific case this would be sufficient, as I could
> 'export PASSWORD_STORE_GPG_OPTS="--no-permission-warning"' and do the
> rest with $GNUPGHOME/gpg.conf.
> 
> However, I'm afraid $PASSWORD_STORE_GPG_OPTS cannot provide a very
> generic way to specify custom gpg command line options because Bash
> arrays cannot be passed between processes.  For example, if one does this:
> -----
> $ export PASSWORD_STORE_GPG_OPTS=( "--no-default-keyring"
> "--keyring=/etc/pki/gpg/the-separate-keyring.gpg" )
> -----
> ... the array will be effectively truncated to contain only the first
> element so that /usr/bin/pass will receive just
> PASSWORD_STORE_GPG_OPTS="--no-default-keyring".

Don't do that then; just use
  PASSWORD_STORE_GPG_OPTS="--no-default-keyring --keyring=/etc/pki/gpg/the-separate-keyring.gpg"

It works well in my testing.

David Adam
zanchey at gmail.com


More information about the Password-Store mailing list