From unknown Tue Jun 24 06:56:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8791: 23.3; EasyPG: pinentry in remote emacs session without X Resent-From: Roland Winkler Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jun 2011 00:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8791 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8791@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.130705944625138 (code B ref -1); Fri, 03 Jun 2011 00:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jun 2011 00:04:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QSHry-0006XO-2v for submit@debbugs.gnu.org; Thu, 02 Jun 2011 20:04:06 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QSHrw-0006Ws-Fk for submit@debbugs.gnu.org; Thu, 02 Jun 2011 20:04:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSHrq-0005gq-BB for submit@debbugs.gnu.org; Thu, 02 Jun 2011 20:03:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:33680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSHrq-0005gm-89 for submit@debbugs.gnu.org; Thu, 02 Jun 2011 20:03:58 -0400 Received: from eggs.gnu.org ([140.186.70.92]:54807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSHrp-0005mA-05 for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2011 20:03:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSHro-0005gZ-1x for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2011 20:03:56 -0400 Received: from essmail.ess.niu.edu ([131.156.1.18]:57526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSHrn-0005fn-UD for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2011 20:03:56 -0400 Received: from lukas.physics.niu.edu (lukas.physics.niu.edu [131.156.85.221]) by essmail.ess.niu.edu (8.14.3/8.14.3) with ESMTP id p5303lV7001221 for ; Thu, 2 Jun 2011 19:03:47 -0500 (CDT) From: Roland Winkler Date: Thu, 02 Jun 2011 19:03:47 -0500 Message-ID: <87d3ivvl0c.fsf@lukas.physics.niu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) I am running emacs remotely as a child of gpg-agent, but with X forwarding disabled. If I am trying to visit a gpg-encrypted file, I simply get the error message File exists, but cannot be read and I get an empty buffer. I expect that this is related to the fact that EasyPG does not run pinentry (or: does not run pinentry properly) if X forwarding is disabled. If I do enable X forwarding and I try to open a gpg-encrypted file, a pinentry window pops up, asking me for the passphrase. Then I can visit gpg-encrypted files as expected. I would expect that with X forwarding disabled, emacs will ask for the passphrase in the minibuffer. (I believe I got this behavior when I had no pinentry program installed.) In GNU Emacs 23.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.9) of 2011-06-02 on lukas Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: en_GB.utf8 value of $LANG: en_US.ISO-8859-15 value of $XMODIFIERS: nil locale-coding-system: iso-latin-9-unix default enable-multibyte-characters: t From unknown Tue Jun 24 06:56:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8791: 23.3; EasyPG: pinentry in remote emacs session without X Resent-From: Daiki Ueno Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jun 2011 04:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8791 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Roland Winkler Cc: 8791@debbugs.gnu.org Received: via spool by 8791-submit@debbugs.gnu.org id=B8791.130707482319027 (code B ref 8791); Fri, 03 Jun 2011 04:21:01 +0000 Received: (at 8791) by debbugs.gnu.org; 3 Jun 2011 04:20:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QSLrz-0004wq-D2 for submit@debbugs.gnu.org; Fri, 03 Jun 2011 00:20:23 -0400 Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QSLrw-0004wb-D3 for 8791@debbugs.gnu.org; Fri, 03 Jun 2011 00:20:21 -0400 Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Fri, 3 Jun 2011 13:20:12 +0900 Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id p534KB70000961; Fri, 3 Jun 2011 13:20:11 +0900 Message-ID: From: Daiki Ueno References: <87d3ivvl0c.fsf@lukas.physics.niu.edu> Date: Fri, 03 Jun 2011 13:20:15 +0900 In-Reply-To: <87d3ivvl0c.fsf@lukas.physics.niu.edu> (Roland Winkler's message of "Thu, 02 Jun 2011 19:03:47 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Roland Winkler writes: > I am running emacs remotely as a child of gpg-agent, but with X > forwarding disabled. If I am trying to visit a gpg-encrypted file, > I simply get the error message > > File exists, but cannot be read > > and I get an empty buffer. > > I would expect that with X forwarding disabled, emacs will ask for the > passphrase in the minibuffer. (I believe I got this behavior when I had > no pinentry program installed.) Well I think pinentry should fallback to use curses in this case. However it is not currently possible since there is no way to get the tty where Emacs is running. See: http://article.gmane.org/gmane.emacs.devel/96207 Regards, -- Daiki Ueno From unknown Tue Jun 24 06:56:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8791: 23.3; EasyPG: pinentry in remote emacs session without X Resent-From: "Roland Winkler" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jun 2011 02:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8791 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daiki Ueno Cc: 8791@debbugs.gnu.org Received: via spool by 8791-submit@debbugs.gnu.org id=B8791.130715390814848 (code B ref 8791); Sat, 04 Jun 2011 02:19:02 +0000 Received: (at 8791) by debbugs.gnu.org; 4 Jun 2011 02:18:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QSgRX-0003rQ-Qm for submit@debbugs.gnu.org; Fri, 03 Jun 2011 22:18:28 -0400 Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QSgRW-0003rF-9L for 8791@debbugs.gnu.org; Fri, 03 Jun 2011 22:18:26 -0400 Received: from regnitz (unknown [202.20.0.151]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id 698392252F; Sat, 4 Jun 2011 04:18:18 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19945.38370.473370.719275@gargle.gargle.HOWL> Date: Fri, 3 Jun 2011 21:18:10 -0500 From: "Roland Winkler" In-Reply-To: References: <87d3ivvl0c.fsf@lukas.physics.niu.edu> X-Mailer: VM 8.2 trial under 23.3.1 (x86_64-unknown-linux-gnu) X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On Fri Jun 3 2011 Daiki Ueno wrote: > Well I think pinentry should fallback to use curses in this case. > However it is not currently possible since there is no way to get the > tty where Emacs is running. See: > > http://article.gmane.org/gmane.emacs.devel/96207 I do not know much about the internals of gpg. I was wondering: for gpg, is there anything similar to the ssh-add command, which could serve as a fallback? Roland From unknown Tue Jun 24 06:56:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8791: 23.3; EasyPG: pinentry in remote emacs session without X Resent-From: Daiki Ueno Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jun 2011 01:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8791 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Roland Winkler" Cc: 8791@debbugs.gnu.org Received: via spool by 8791-submit@debbugs.gnu.org id=B8791.130732478322331 (code B ref 8791); Mon, 06 Jun 2011 01:47:01 +0000 Received: (at 8791) by debbugs.gnu.org; 6 Jun 2011 01:46:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTOtb-0005o8-G3 for submit@debbugs.gnu.org; Sun, 05 Jun 2011 21:46:23 -0400 Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QTOtY-0005nu-DE for 8791@debbugs.gnu.org; Sun, 05 Jun 2011 21:46:22 -0400 Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Mon, 6 Jun 2011 10:46:13 +0900 Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id p561kD8P025859; Mon, 6 Jun 2011 10:46:13 +0900 Message-ID: From: Daiki Ueno References: <87d3ivvl0c.fsf@lukas.physics.niu.edu> <19945.38370.473370.719275@gargle.gargle.HOWL> Date: Mon, 06 Jun 2011 10:46:05 +0900 In-Reply-To: <19945.38370.473370.719275@gargle.gargle.HOWL> (Roland Winkler's message of "Fri, 3 Jun 2011 21:18:10 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) "Roland Winkler" writes: > On Fri Jun 3 2011 Daiki Ueno wrote: >> Well I think pinentry should fallback to use curses in this case. >> However it is not currently possible since there is no way to get the >> tty where Emacs is running. See: >> >> http://article.gmane.org/gmane.emacs.devel/96207 > > I do not know much about the internals of gpg. I was wondering: for > gpg, is there anything similar to the ssh-add command, which could > serve as a fallback? I suspect that gpg command installed on your remote system is GPG2, which is tightly coupled with gpg-agent (and thus pinentry) for secret key operations by its design. Assuming that, I could imagine a couple of (insecure) workarounds: 1. install both GPG1 and GPG2 2. keep using GPG2 and write a pinentry program which retrieves passphrase via emacsclient. Generally I'd recommend 1, since most distros provide both packages, which can be installed with no conflict. Regards, -- Daiki Ueno From unknown Tue Jun 24 06:56:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8791: 23.3; EasyPG: pinentry in remote emacs session without X Resent-From: "Roland Winkler" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jun 2011 05:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8791 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daiki Ueno Cc: 8791@debbugs.gnu.org Received: via spool by 8791-submit@debbugs.gnu.org id=B8791.13073378848107 (code B ref 8791); Mon, 06 Jun 2011 05:25:02 +0000 Received: (at 8791) by debbugs.gnu.org; 6 Jun 2011 05:24:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTSIu-00026i-7S for submit@debbugs.gnu.org; Mon, 06 Jun 2011 01:24:44 -0400 Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTSIs-00026U-TY for 8791@debbugs.gnu.org; Mon, 06 Jun 2011 01:24:43 -0400 Received: from regnitz (unknown [202.20.0.151]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id 66B9A28C30; Mon, 6 Jun 2011 07:24:35 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19948.25740.271081.135518@gargle.gargle.HOWL> Date: Mon, 6 Jun 2011 00:24:28 -0500 From: "Roland Winkler" In-Reply-To: References: <87d3ivvl0c.fsf@lukas.physics.niu.edu> <19945.38370.473370.719275@gargle.gargle.HOWL> X-Mailer: VM 8.2 trial under 24.0.50.1 (x86_64-unknown-linux-gnu) X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On Mon Jun 6 2011 Daiki Ueno wrote: > > I do not know much about the internals of gpg. I was wondering: for > > gpg, is there anything similar to the ssh-add command, which could > > serve as a fallback? > > I suspect that gpg command installed on your remote system is GPG2, > which is tightly coupled with gpg-agent (and thus pinentry) for secret > key operations by its design. ...So I assume from your reply that, first of all, gpg does not have anything similar to shh-add which is a program the user runs in order to talk to the ssh agent. But gpg is doing it the other way round: it's always the gpg agent which runs pinentry to ask the user for a password. I do not quite understand what motivated the authors of gpg and ssh to use these different strategies. Oh well... Anyway: thanks for EasyPG! Roland From unknown Tue Jun 24 06:56:49 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Roland Winkler Subject: bug#8791: closed (Re: bug#8791: 23.3; EasyPG: pinentry in remote emacs session without X) Message-ID: References: <87d3ivvl0c.fsf@lukas.physics.niu.edu> X-Gnu-PR-Message: they-closed 8791 X-Gnu-PR-Package: emacs Reply-To: 8791@debbugs.gnu.org Date: Mon, 06 Jun 2011 06:13:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1307340782-11970-1" This is a multi-part message in MIME format... ------------=_1307340782-11970-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #8791: 23.3; EasyPG: pinentry in remote emacs session without X which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 8791@debbugs.gnu.org. --=20 8791: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D8791 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1307340782-11970-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 8791-done) by debbugs.gnu.org; 6 Jun 2011 06:12:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTT3T-00036h-Jk for submit@debbugs.gnu.org; Mon, 06 Jun 2011 02:12:51 -0400 Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QTT3Q-00036T-5U for 8791-done@debbugs.gnu.org; Mon, 06 Jun 2011 02:12:49 -0400 Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Mon, 6 Jun 2011 15:12:41 +0900 Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id p566Ce5n017788; Mon, 6 Jun 2011 15:12:41 +0900 Message-ID: From: Daiki Ueno To: "Roland Winkler" Subject: Re: bug#8791: 23.3; EasyPG: pinentry in remote emacs session without X References: <87d3ivvl0c.fsf@lukas.physics.niu.edu> <19945.38370.473370.719275@gargle.gargle.HOWL> <19948.25740.271081.135518@gargle.gargle.HOWL> Date: Mon, 06 Jun 2011 15:12:32 +0900 In-Reply-To: <19948.25740.271081.135518@gargle.gargle.HOWL> (Roland Winkler's message of "Mon, 6 Jun 2011 00:24:28 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 8791-done Cc: 8791-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) "Roland Winkler" writes: > ...So I assume from your reply that, first of all, gpg does not have > anything similar to shh-add which is a program the user runs in > order to talk to the ssh agent. Ah, sorry, I misinterpreted your question - yes, there is: gpg-preset-passphrase which is normally installed in /usr/libexec. I'm not quite sure this is what you want as I seldom use that utility, but anyway closing this bug for now. > Anyway: thanks for EasyPG! Welcome. Regards, -- Daiki Ueno ------------=_1307340782-11970-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Jun 2011 00:04:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QSHry-0006XO-2v for submit@debbugs.gnu.org; Thu, 02 Jun 2011 20:04:06 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QSHrw-0006Ws-Fk for submit@debbugs.gnu.org; Thu, 02 Jun 2011 20:04:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSHrq-0005gq-BB for submit@debbugs.gnu.org; Thu, 02 Jun 2011 20:03:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:33680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSHrq-0005gm-89 for submit@debbugs.gnu.org; Thu, 02 Jun 2011 20:03:58 -0400 Received: from eggs.gnu.org ([140.186.70.92]:54807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSHrp-0005mA-05 for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2011 20:03:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSHro-0005gZ-1x for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2011 20:03:56 -0400 Received: from essmail.ess.niu.edu ([131.156.1.18]:57526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSHrn-0005fn-UD for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2011 20:03:56 -0400 Received: from lukas.physics.niu.edu (lukas.physics.niu.edu [131.156.85.221]) by essmail.ess.niu.edu (8.14.3/8.14.3) with ESMTP id p5303lV7001221 for ; Thu, 2 Jun 2011 19:03:47 -0500 (CDT) From: Roland Winkler To: bug-gnu-emacs@gnu.org Subject: 23.3; EasyPG: pinentry in remote emacs session without X Date: Thu, 02 Jun 2011 19:03:47 -0500 Message-ID: <87d3ivvl0c.fsf@lukas.physics.niu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) I am running emacs remotely as a child of gpg-agent, but with X forwarding disabled. If I am trying to visit a gpg-encrypted file, I simply get the error message File exists, but cannot be read and I get an empty buffer. I expect that this is related to the fact that EasyPG does not run pinentry (or: does not run pinentry properly) if X forwarding is disabled. If I do enable X forwarding and I try to open a gpg-encrypted file, a pinentry window pops up, asking me for the passphrase. Then I can visit gpg-encrypted files as expected. I would expect that with X forwarding disabled, emacs will ask for the passphrase in the minibuffer. (I believe I got this behavior when I had no pinentry program installed.) In GNU Emacs 23.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.9) of 2011-06-02 on lukas Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: en_GB.utf8 value of $LANG: en_US.ISO-8859-15 value of $XMODIFIERS: nil locale-coding-system: iso-latin-9-unix default enable-multibyte-characters: t ------------=_1307340782-11970-1-- From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 10 20:12:20 2011 Received: (at control) by debbugs.gnu.org; 11 Nov 2011 01:12:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROffG-0001Rw-VS for submit@debbugs.gnu.org; Thu, 10 Nov 2011 20:12:19 -0500 Received: from www10194u.sakura.ne.jp ([182.48.42.232]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROff2-0001RT-20; Thu, 10 Nov 2011 20:12:17 -0500 Message-ID: From: Daiki Ueno To: Tassilo Horn Subject: Re: bug#10011: 24.0.91; Password prompt on linux console reads only every second key References: <877h3871l7.fsf@tsdh.uni-koblenz.de> Date: Fri, 11 Nov 2011 10:11:40 +0900 In-Reply-To: <877h3871l7.fsf@tsdh.uni-koblenz.de> (Tassilo Horn's message of "Thu, 10 Nov 2011 10:45:24 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control Cc: 10011@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) unarchive 8791 forcemerge 8791 10011 thanks Tassilo Horn writes: > When I fire up emacs in a plain linux console and try to find an > encrypted file like C-x C-f ~/.authinfo.gpg RET, I get a password prompt > like > > +----------------| Password: > > at the bottom of the screen. Do you mean you started up emacs without X? If so... > I get a different, dialog-like password prompt: > > +---------------------------+ > | Password: | > | _________________________ | > | | > +---------------------------+ ...looks like a pinentry-curses dialog. Actually the integration of pinentry-curses with Emacs is not yet ready: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8791#8 I was a bit surprised that the dialog is somehow working :) Anyway, workarounds are to use gpg1 without gpg-agent, or to preset your passphrase with gpg-preset-passphrase. Regards, -- Daiki Ueno