Re: pass 'password manager' problem

2020-02-26 Thread Shadrock Uhuru

On 26.02.2020 10:57, Andreas Kusalananda Kähäri wrote:

On Wed, Feb 26, 2020 at 09:37:53AM +, Shadrock Uhuru wrote:
> > ---

> >
> > shadrock

Hi
yes i have gpg2 installed

gpg-agent.conf has cat .gnupg/gpg-agent.conf

default-cache-ttl 300
max-cache-ttl 99

and i've added export GPG_TTY=$(tty) ~/.profile

but still no joy.

shadrock


Hi,

Do you *also* have gpg installed?  If I remember correctly, pass tries
to use gpg rather than gpg2 if gpg is installed when installing pass.


--
Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden

.


Hi yes i also have gpg installed,
i see this at the beginning of the pass script :-


GPG_OPTS=( $PASSWORD_STORE_GPG_OPTS "--quiet" "--yes"
"--compress-algo=none" "--no-encrypt-to" )
GPG="gpg"
export GPG_TTY="${GPG_TTY:-$(tty 2>/dev/null)}"
which gpg2 &>/dev/null && GPG="gpg2"
[[ -n $GPG_AGENT_INFO || $GPG == "gpg2" ]] && GPG_OPTS+=( "--batch"
"--use-agent" )


which looks like gpg2 is used if it is installed.

shadrock


smime.p7s
Description: S/MIME cryptographic signature


Re: pass 'password manager' problem

2020-02-26 Thread Shadrock Uhuru

Date: Mon, 24 Feb 2020 14:11:19 - (UTC)




As far as I have seen in the pass script, --batch mode is oly invoked if you 
are running a gpg agent or are running gpg2.

Do you have gpg2 installed?

Do you have a gpg agent configured?

You may need to include the following line in your ~.profile :
export GPG_TTY=$(tty)

Shadrock Uhuru  wrote:

[-- text/plain, encoding 8bit, charset: utf-8, 61 lines --]

Hi


From: Rubén Llorente 
To: misc@openbsd.org
Subject: Re: pass 'password manager' problem
Date: Fri, 21 Feb 2020 16:22:37 - (UTC)

Do you have a ~.gnupg/gpg.conf ? Pass works fine for me.

Shadrock Uhuru  wrote:

[-- text/plain, encoding 7bit, charset: utf-8, 6 lines --]

running 'pass username' returns
"gpg: Sorry, we are in batchmode - can't get input",
am i missing a piece of software or setting ?

shadrock



yes i have the following
cat ~/.gnupg/gpg.conf

use-agent
pinentry-mode loopback
personal-cipher-preferences CAMELLIA256 AES256 AES192 AES CAST5
# personal-cipher-preferences AES256 AES192 AES CAST5 CAMELLIA192
# BLOWFISH TWOFISH CAMELLIA128 3DES
personal-digest-preferences SHA512 SHA384 SHA256 SHA224
personal-compress-preferences BZIP2 ZIP ZLIB
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES
CAST5 ZLIB BZIP2 ZIP Uncompressed
cert-digest-algo SHA512
digest-algo SHA256
s2k-mode 3
s2k-digest-algo SHA512
s2k-cipher-algo AES256
s2k-count 1015808
charset utf-8
fixed-list-mode
no-greeting
no-secmem-warning
no-comments
no-emit-version
keyid-format 0xlong
list-options show-uid-validity
verify-options show-uid-validity
keyserver-options import-clean-sigs import-clean-uids export-clean-sigs
export-clean-uids
keyserver hkp://hkps.pool.sks-keyservers.net
keyserver-options auto-key-retrieve
keyserver-options no-honor-keyserver-url
escape-from-lines
bzip2-compress-level 9
compress-level 9
with-fingerprint


---

shadrock


Hi
yes i have gpg2 installed

gpg-agent.conf has 
cat .gnupg/gpg-agent.conf


default-cache-ttl 300
max-cache-ttl 99

and i've added export GPG_TTY=$(tty) ~/.profile

but still no joy.

shadrock



Re: pass 'password manager' problem

2020-02-24 Thread Rubén Llorente
As far as I have seen in the pass script, --batch mode is oly invoked if you 
are running a gpg agent or are running gpg2.

Do you have gpg2 installed?

Do you have a gpg agent configured?

You may need to include the following line in your ~.profile :
export GPG_TTY=$(tty)

Shadrock Uhuru  wrote:
> [-- text/plain, encoding 8bit, charset: utf-8, 61 lines --]
> 
> Hi
> 
>>From: Rubén Llorente 
>>To: misc@openbsd.org
>>Subject: Re: pass 'password manager' problem
>>Date: Fri, 21 Feb 2020 16:22:37 - (UTC)
>>
>>Do you have a ~.gnupg/gpg.conf ? Pass works fine for me.
>>
>>Shadrock Uhuru  wrote:
>>> [-- text/plain, encoding 7bit, charset: utf-8, 6 lines --]
>>>
>>> running 'pass username' returns
>>> "gpg: Sorry, we are in batchmode - can't get input",
>>> am i missing a piece of software or setting ?
>>>
>>> shadrock
>>>
> 
> yes i have the following 
> cat ~/.gnupg/gpg.conf
> 
> use-agent
> pinentry-mode loopback
> personal-cipher-preferences CAMELLIA256 AES256 AES192 AES CAST5
> # personal-cipher-preferences AES256 AES192 AES CAST5 CAMELLIA192
> # BLOWFISH TWOFISH CAMELLIA128 3DES
> personal-digest-preferences SHA512 SHA384 SHA256 SHA224
> personal-compress-preferences BZIP2 ZIP ZLIB
> default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES
> CAST5 ZLIB BZIP2 ZIP Uncompressed
> cert-digest-algo SHA512
> digest-algo SHA256
> s2k-mode 3
> s2k-digest-algo SHA512
> s2k-cipher-algo AES256
> s2k-count 1015808
> charset utf-8
> fixed-list-mode
> no-greeting
> no-secmem-warning
> no-comments
> no-emit-version
> keyid-format 0xlong
> list-options show-uid-validity
> verify-options show-uid-validity
> keyserver-options import-clean-sigs import-clean-uids export-clean-sigs
> export-clean-uids
> keyserver hkp://hkps.pool.sks-keyservers.net
> keyserver-options auto-key-retrieve
> keyserver-options no-honor-keyserver-url
> escape-from-lines
> bzip2-compress-level 9
> compress-level 9
> with-fingerprint
> 
> 
> ---
> 
> shadrock
> 
> [-- application/x-pkcs7-signature, encoding base64, 67 lines, name: smime.p7s 
> --]

-- 
OpenPGP Key Fingerprint:
BB5A C2A2 2CAD ACB7 D50D  C081 1DB9 6FC4 5AB7 92FA



Re: pass 'password manager' problem

2020-02-23 Thread Shadrock Uhuru

Hi


From: Rubén Llorente 
To: misc@openbsd.org
Subject: Re: pass 'password manager' problem
Date: Fri, 21 Feb 2020 16:22:37 - (UTC)

Do you have a ~.gnupg/gpg.conf ? Pass works fine for me.

Shadrock Uhuru  wrote:

[-- text/plain, encoding 7bit, charset: utf-8, 6 lines --]

running 'pass username' returns
"gpg: Sorry, we are in batchmode - can't get input",
am i missing a piece of software or setting ?

shadrock



yes i have the following 
cat ~/.gnupg/gpg.conf


use-agent
pinentry-mode loopback
personal-cipher-preferences CAMELLIA256 AES256 AES192 AES CAST5
# personal-cipher-preferences AES256 AES192 AES CAST5 CAMELLIA192
# BLOWFISH TWOFISH CAMELLIA128 3DES
personal-digest-preferences SHA512 SHA384 SHA256 SHA224
personal-compress-preferences BZIP2 ZIP ZLIB
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES
CAST5 ZLIB BZIP2 ZIP Uncompressed
cert-digest-algo SHA512
digest-algo SHA256
s2k-mode 3
s2k-digest-algo SHA512
s2k-cipher-algo AES256
s2k-count 1015808
charset utf-8
fixed-list-mode
no-greeting
no-secmem-warning
no-comments
no-emit-version
keyid-format 0xlong
list-options show-uid-validity
verify-options show-uid-validity
keyserver-options import-clean-sigs import-clean-uids export-clean-sigs
export-clean-uids
keyserver hkp://hkps.pool.sks-keyservers.net
keyserver-options auto-key-retrieve
keyserver-options no-honor-keyserver-url
escape-from-lines
bzip2-compress-level 9
compress-level 9
with-fingerprint


---

shadrock


smime.p7s
Description: S/MIME cryptographic signature


Re: pass 'password manager' problem

2020-02-21 Thread Rubén Llorente
Do you have a ~.gnupg/gpg.conf ? Pass works fine for me.

Shadrock Uhuru  wrote:
> [-- text/plain, encoding 7bit, charset: utf-8, 6 lines --]
> 
> running 'pass username' returns 
> "gpg: Sorry, we are in batchmode - can't get input",
> am i missing a piece of software or setting ?
> 
> shadrock
> 
> [-- application/x-pkcs7-signature, encoding base64, 67 lines, name: smime.p7s 
> --]

-- 
OpenPGP Key Fingerprint:
BB5A C2A2 2CAD ACB7 D50D  C081 1DB9 6FC4 5AB7 92FA



pass 'password manager' problem

2020-02-21 Thread Shadrock Uhuru
running 'pass username' returns 
"gpg: Sorry, we are in batchmode - can't get input",

am i missing a piece of software or setting ?

shadrock


smime.p7s
Description: S/MIME cryptographic signature