X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:subject:reply-to:to:references:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=S1ZSNWUbSxmPV7Oz
	whxVtNRuYTEoOjX70iTp+3CebfTX/aX8A8HrE9ZT7Qbg/UcALrVfHcE+ujYuzTYt
	an99zuzY38Gye2BmyXDf0M0Wf+7QvAB96bc0nXn+G0vgVrWb4eK1xSqEEg+7DZlS
	la2YRqwlZxsN2g+cIvN45USUbQQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:subject:reply-to:to:references:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=4HnLso0d9vDv/u786xPefT
	qctrM=; b=gt6TLQsPLjgvJNvGOukZor4yxPG/afjEYySmQAASDxp4nb2ZBqn214
	11ISZ0VEgl6ARya2BnggKL0DxbPZTLlYjhtsAwuZCDIuzk510z/7b+iwDTPJFaOS
	C7UQIBFPsJrzyKGco/QNig0mPThxYwZlH5dXhqc87q8qywCkn3LNw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*R:D*ca, Hx-languages-length:1474, H*F:D*ab.ca, secret
X-HELO: smtp-out-no.shaw.ca
X-Authority-Analysis: v=2.2 cv=a+JAzQaF c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=kkLwFqq4AAAA:8 a=b4eMD0GmHX_ZvWjD-W0A:9 a=QEXdDO2ut3YA:10 a=o8OmvK1q9j2rsWQQ_NmD:22
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Subject: Re: problem with gnupg2 not prompting for passphrase
Reply-To: Brian.Inglis@SystematicSw.ab.ca
To: cygwin@cygwin.com
References: <ddb4fd0f-8138-7cc5-ccf5-678fe6365afd@jeffunit.com> <3e91fbf6-cf13-718f-5f0f-8e77cd57b169@towo.net> <80c253d7-7ea6-ac5c-0bc1-a6ac4ee3f4d4@jeffunit.com> <87eftoxcty.fsf@Rainer.invalid> <19170552-87dc-ffc3-b396-8cfd203ead91@jeffunit.com> <1345cecb-8465-f1e6-4fa0-85407af5e761@towo.net>
Message-ID: <99d1afac-cfa6-17e9-aa0c-3cf5033f8179@SystematicSw.ab.ca>
Date: Tue, 11 Jul 2017 11:51:11 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <1345cecb-8465-f1e6-4fa0-85407af5e761@towo.net>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-CMAE-Envelope: MS4wfEh6kV/LYsr3NWw59dCyk2YvhI/8c1lOHAWePdDfRnzI4ZCuZvzbXLjAGwuECYeC9LlIvvDE2ZL3G/9qoJz00ujivPaZr+wet4aFmidajtTi8claaY4Q zX0lzjCxssbNgW2QxubN+FFUM2zFlLjn5dqTqsukNgXfK+aNeHDACZMl38L5qe6cRx5xP/x/fBIhuA==
X-IsSubscribed: yes

On 2017-07-10 23:07, Thomas Wolff wrote:
> Am 11.07.2017 um 00:38 schrieb jeff:
>> On 7/10/2017 1:21 PM, Achim Gratz wrote:
>>> jeff writes:
>>>> jeff_xeon:/cygdrive/u:503: gpg2 --output fred.good --decrypt fred.gpg
>>>> gpg: encrypted with 4096-bit RSA key, ID A3791E7DD935A424, created
>>>> 2013-03-21
>>>>        "Jeff Deifik <jeff@jeffunit.com>"
>>>> gpg: public key decryption failed: No such device or address
>>>> gpg: decryption failed: No secret key
>>>>
>>>> I have uninstalled the standalone version of gnupg2 before I did this.
>>>> It seems most likely that the version of gpg2 being invoked is a cygwin
>>>> version.
>>> It fails to find your private key, so it is quite obviously not in a
>>> place where gpg2 expects to find it.
>> I have my keys stored in $HOME/.gnupg which is where gnupg v1 expects them.

gnupg2 uses the same --homedir paths, $GNUPGHOME env var, native Windows reg
key, and native Windows portable apps homedir as gnupg1.

> Just guessing: Some software does not look in $HOME for config files (e.g.
> openssh) but expects them in /home/...

OpenSSH expects user config files in ~/.ssh/ where ~ is $HOME, or the home
directory from "getent passwd $LOGNAME", which defaults to /.

They'd better expect $HOME, not /home/$LOGNAME, as $HOME could also be
/u/$LOGNAME, /mnt/nfs/OrkeyDorkey, or /mnt/Network\ Users/Orkey\ Dorkey! ;^>

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

