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

Previous Next

Package: emacs;

Reported by: Yegor Timoshenko <yegortimoshenko <at> gmail.com>

Date: Thu, 21 Sep 2017 15:26:02 UTC

Severity: normal

Tags: wontfix

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Yegor Timoshenko <yegortimoshenko <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: eshell/sudo find-file doesn't work as expected with files only
 readable by root
Date: Thu, 21 Sep 2017 15:25:40 +0000
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.




This bug report was last modified 5 years and 231 days ago.

Previous Next


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