pass 'password manager' problem

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

pass 'password manager' problem

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 (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pass 'password manager' problem

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

Shadrock Uhuru <[hidden email]> 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

Reply | Threaded
Open this post in threaded view
|

Re: pass 'password manager' problem

shadrock uhuru
In reply to this post by shadrock uhuru
Hi

>From: Rubén Llorente <[hidden email]>
>To: [hidden email]
>Subject: Re: pass 'password manager' problem
>Date: Fri, 21 Feb 2020 16:22:37 -0000 (UTC)
>
>Do you have a ~.gnupg/gpg.conf ? Pass works fine for me.
>
>Shadrock Uhuru <[hidden email]> 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 (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pass 'password manager' problem

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 <[hidden email]> wrote:

> [-- text/plain, encoding 8bit, charset: utf-8, 61 lines --]
>
> Hi
>
>>From: Rubén Llorente <[hidden email]>
>>To: [hidden email]
>>Subject: Re: pass 'password manager' problem
>>Date: Fri, 21 Feb 2020 16:22:37 -0000 (UTC)
>>
>>Do you have a ~.gnupg/gpg.conf ? Pass works fine for me.
>>
>>Shadrock Uhuru <[hidden email]> 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

Reply | Threaded
Open this post in threaded view
|

Re: pass 'password manager' problem

shadrock uhuru
In reply to this post by shadrock uhuru
>Date: Mon, 24 Feb 2020 14:11:19 -0000 (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 <[hidden email]> wrote:
>> [-- text/plain, encoding 8bit, charset: utf-8, 61 lines --]
>>
>> Hi
>>
>>>From: Rubén Llorente <[hidden email]>
>>>To: [hidden email]
>>>Subject: Re: pass 'password manager' problem
>>>Date: Fri, 21 Feb 2020 16:22:37 -0000 (UTC)
>>>
>>>Do you have a ~.gnupg/gpg.conf ? Pass works fine for me.
>>>
>>>Shadrock Uhuru <[hidden email]> 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 999999

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

but still no joy.

shadrock

Reply | Threaded
Open this post in threaded view
|

Re: pass 'password manager' problem

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

>On Wed, Feb 26, 2020 at 09:37:53AM +0000, 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 999999
>>
>> 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 (4K) Download Attachment