GNU bug report logs - #28540
eshell/sudo find-file doesn't work as expected with files only readable by root

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Yegor Timoshenko <yegortimoshenko@HIDDEN>; dated Thu, 21 Sep 2017 15:26:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 28540 <at> debbugs.gnu.org:


Received: (at 28540) by debbugs.gnu.org; 21 Sep 2017 15:31:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 11:31:02 2017
Received: from localhost ([127.0.0.1]:51737 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dv3RO-0006yt-9W
	for submit <at> debbugs.gnu.org; Thu, 21 Sep 2017 11:31:02 -0400
Received: from mail-wm0-f50.google.com ([74.125.82.50]:47826)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <yegortimoshenko@HIDDEN>) id 1dv3RM-0006yN-Ec
 for 28540 <at> debbugs.gnu.org; Thu, 21 Sep 2017 11:31:00 -0400
Received: by mail-wm0-f50.google.com with SMTP id r136so2959475wmf.2
 for <28540 <at> debbugs.gnu.org>; Thu, 21 Sep 2017 08:31:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
 bh=Z5JQR+XAqiWniEMF9WvFkbsvG/55ePtoA4ifepXLZ0Y=;
 b=e9WKPAYI/IklL3up4WGv9UkZrX4pDYp2NLe3gqCCVTkLA/uSFUpfWrtjozQDwrZeiv
 hQ6bk+YspPVNMzyL+6JP25TfZ9mfxcvpuvGplUcz1fW6Zo4xOS2qAR1nmx0a8RRO8jfA
 CMtaeioaEP1WqhgfJQVWYJrUHDw5CbcQ6+uT6SQ5dQYTdwa9eq3GkWoXOYQAFuKfvn0J
 pfZ3BNuEiMKa/I1rP7Kqrisv6F6Bh1Ew7FrdeEWC5xGMgVTJWThrZro7I/rrJPbV+n2b
 BM/Oq1PYpd3lgrYCWpSDSl7z2vjqiW+ZZDcK2vam19hR70SY/neGKCZzfg8dq3XtFYnP
 Y2MQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to;
 bh=Z5JQR+XAqiWniEMF9WvFkbsvG/55ePtoA4ifepXLZ0Y=;
 b=ZFKzuOP5Qa+Px8wQ0Us/jDflNHqlVt9ryFSrX6H63GMdF3cUYUS0w1Gtp3XB/jveAg
 wMQrzRscwFbPsEu1U2TFpbC4RA2KVFNJskbGbnF/3zx4K1LLd56sxHkPwylAEvjurQ7g
 U1hWlNs9gEf3nlQp3i6diuws4dKpqGVIx7WXrt3BoZkhq2BYb7RHML78IVPcQfEzP1RU
 nsBxR3/bGwmDfKDy/IdaDWL2fEO+GPWe1J8XmquJSl74ykheFlxAMZ+AC6O59Hr3/bkt
 CfbJX9njO21L+Blntv6gz2rp7xLPOMWen2Uvgymqa8Og2Uk+6RKYly1VrueL7X6XBNiE
 OqHQ==
X-Gm-Message-State: AHPjjUgCnhbe2/hlHBkZVnlYOg14mN6Lsl0QlJa/6yHKpOEMGA13B8qW
 4HSAmVKnOBuSamBHDgUWd+PdtcADboSDhLmYmHz8Xg==
X-Google-Smtp-Source: AOwi7QBJpMB+aitC9PltPJcz5fx7I/je0TbTvR71d5qBZdC4DcvJVG1HqAUeL8gWKE1I9WR9AtjdKIxaN7WqHSjgk0A=
X-Received: by 10.28.226.84 with SMTP id z81mr1346160wmg.108.1506007854534;
 Thu, 21 Sep 2017 08:30:54 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.28.214.211 with HTTP; Thu, 21 Sep 2017 08:30:53 -0700 (PDT)
In-Reply-To: <handler.28540.B.150600755726250.ack <at> debbugs.gnu.org>
References: <CAF4sQCOR4dpMYHaiwMX1t7fCHvtnYPdSCLeacqbxFndbddFw1w@HIDDEN>
 <handler.28540.B.150600755726250.ack <at> debbugs.gnu.org>
From: Yegor Timoshenko <yegortimoshenko@HIDDEN>
Date: Thu, 21 Sep 2017 15:30:53 +0000
Message-ID: <CAF4sQCOt5akLtxbemuvWLrPYT5SwFaQFy_bitcyaOn17oVodCw@HIDDEN>
Subject: Re: bug#28540: Acknowledgement (eshell/sudo find-file doesn't work as
 expected with files only readable by root)
To: 28540 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 28540
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Sorry, two assumptions in the previous email:

(defalias 'ff 'find-file)
(eval-after-load 'esh-module
  '(add-to-list 'eshell-modules-list 'eshell-tramp))

On Thu, Sep 21, 2017 at 3:26 PM, GNU bug Tracking System
<help-debbugs@HIDDEN> wrote:
> Thank you for filing a new bug report with debbugs.gnu.org.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
>  bug-gnu-emacs@HIDDEN
>
> If you wish to submit further information on this problem, please
> send it to 28540 <at> debbugs.gnu.org.
>
> Please do not send mail to help-debbugs@HIDDEN unless you wish
> to report a problem with the Bug-tracking system.
>
> --
> 28540: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28540
> GNU Bug Tracking System
> Contact help-debbugs@HIDDEN with problems




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28540; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Sep 2017 15:25:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 11:25:57 2017
Received: from localhost ([127.0.0.1]:51727 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dv3MT-0006pK-Ed
	for submit <at> debbugs.gnu.org; Thu, 21 Sep 2017 11:25:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44095)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <yegortimoshenko@HIDDEN>) id 1dv3MR-0006p6-6a
 for submit <at> debbugs.gnu.org; Thu, 21 Sep 2017 11:25:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <yegortimoshenko@HIDDEN>) id 1dv3ML-0002nm-33
 for submit <at> debbugs.gnu.org; Thu, 21 Sep 2017 11:25:49 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:58976)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <yegortimoshenko@HIDDEN>)
 id 1dv3MK-0002ne-VV
 for submit <at> debbugs.gnu.org; Thu, 21 Sep 2017 11:25:49 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35035)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <yegortimoshenko@HIDDEN>) id 1dv3MG-0003xy-SK
 for bug-gnu-emacs@HIDDEN; Thu, 21 Sep 2017 11:25:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <yegortimoshenko@HIDDEN>) id 1dv3MF-0002kE-Sw
 for bug-gnu-emacs@HIDDEN; Thu, 21 Sep 2017 11:25:44 -0400
Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:50345)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <yegortimoshenko@HIDDEN>)
 id 1dv3MF-0002hT-Jk
 for bug-gnu-emacs@HIDDEN; Thu, 21 Sep 2017 11:25:43 -0400
Received: by mail-wm0-x231.google.com with SMTP id b195so2885460wmb.5
 for <bug-gnu-emacs@HIDDEN>; Thu, 21 Sep 2017 08:25:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=vCzcXhvcbhENg7Kq1LbljF9NPUDT587h4ZzwUv3XKwc=;
 b=qIJQvwGhzwN6vfzyhped74bXrPBKPLsZJLZ4++YR6BliNSY5IoMaoXZB5APhcY40DE
 BApSe0EktqhBA7vmFv+qqgMra07p9W9ucgF5N3hmrgN0AsAhGCDRtrILh5wnqB0mDpd8
 AZCAWXRdh1uY5Yo2hUR00SffLk67jvmN+1pdU47scJBqun4B2JNmSz6adCbECddqCcjf
 LJ940X8hL/fZWewaXFpQ8deuPLDt5TGxU8VB273kgnEjvn49MXW+1jUHqXlACaImiB5M
 vCXKhUwTBrzD67VRZu/lHUDmK0PzkjZ25yUKPGbZ/MTRC9tgh9W5GCT9wiFVw9T/eppl
 o4sg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=vCzcXhvcbhENg7Kq1LbljF9NPUDT587h4ZzwUv3XKwc=;
 b=ntI+SJLBkCdeVOdhS9dfibHggPJjJmno6oOYgst2kkc0ZYBY8tivi6rEhQaH7Uutyn
 ZcW9eZX0XgVB9zOVNRwa6asezSRQD3MTb01wBNUItgxgWFAPNpvgKBU8jI/seT1t5Wh6
 ipCsVyjRBZVJUK4XU0knfyxaxjlYYOzWk01K/3C9H0OeCkD7L6iHBH0IbdT68XeagknK
 gsRcZf6Zve5P54AFqkZufoVaX9HEBhKJgAwvFVXmCo6LnkNOttVxFlGvaTQ+Y/3YzEa4
 lEIbsxTdJRHLp7bjLH11zL2VErrLm+FVrThu32xMkQTFLIVsYKog/MO4Bxxqy0SMkRHN
 P/Qw==
X-Gm-Message-State: AHPjjUgaGzyVViG70YfzXxtLUI15DTYtAtUSI28pnYa2wPxkrIH3rCZu
 7BVf4fzXa0ih3xXWyy3CbXvhAB5+P6XOyaAP7pekHg==
X-Google-Smtp-Source: AOwi7QCBLi2FPAD5PMhpEmWdlTXPpzw+XxEi8Y3IrVwH873ubEaz/foux9S9pJz0wV1P0bRZ8M+s78LbtTEYUy8gYqA=
X-Received: by 10.28.74.89 with SMTP id x86mr1378457wma.57.1506007540648; Thu,
 21 Sep 2017 08:25:40 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.28.214.211 with HTTP; Thu, 21 Sep 2017 08:25:40 -0700 (PDT)
From: Yegor Timoshenko <yegortimoshenko@HIDDEN>
Date: Thu, 21 Sep 2017 15:25:40 +0000
Message-ID: <CAF4sQCOR4dpMYHaiwMX1t7fCHvtnYPdSCLeacqbxFndbddFw1w@HIDDEN>
Subject: eshell/sudo find-file doesn't work as expected with files only
 readable by root
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

To reproduce, M-x eshell and compare behavior of these two commands:

$ ff /sudo::/etc/sudoers
$ sudo ff /etc/sudoers

In the first case the buffer is editable (and can be saved), while in
the latter it is opened read-only. Switching read-only flag with C-x
C-q doesn't help: I can edit the buffer, but not save it (results in
"Doing chmod: operation not permitted" error).

GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars)
 of 2017-09-21 (198ba449845ffa557ac272c3219c703148648f53)

Reproducible in Emacs 25.3 as well.




Acknowledgement sent to Yegor Timoshenko <yegortimoshenko@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#28540; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 21 Sep 2017 15:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.