[pass] Multiple users and store ownership

guns self at sungpae.com
Wed Nov 20 20:10:11 CET 2013


On Wed 20 Nov 2013 at 12:43:06PM +0000, Matthew Richardson wrote:
 
> To this end, I've attached a simple patch which allows the umask to be
> overridden in an environment variable.

> --- /usr/bin/pass	2013-11-20 12:41:42.000000000 +0000
> +++ /usr/bin/pass.new	2013-11-20 12:42:02.000000000 +0000
> @@ -3,7 +3,8 @@
>  # Copyright (C) 2012 Jason A. Donenfeld <Jason at zx2c4.com>. All Rights Reserved.
>  # This file is licensed under the GPLv2+. Please see COPYING for more information.
>  
> -umask 077
> +UMASK="${PASSWORD_STORE_UMASK:-077}"
> +umask UMASK
>  
>  PREFIX="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
>  ID="$PREFIX/.gpg-id"

I believe you have a typo.

It also seems unnecessary to introduce a new variable that is consumed
once, immediately:

    umask "${PASSWORD_STORE_UMASK:-077}"

I'm sure a patch for the man page would also be appreciated.

    guns
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20131120/1ffeae68/attachment.asc>


More information about the Password-Store mailing list