unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jim Porter <jporterbugs@gmail.com>
To: the_wurfkreuz <the_wurfkreuz@proton.me>,
	"74674@debbugs.gnu.org" <74674@debbugs.gnu.org>
Subject: bug#74674: (No Subject)
Date: Sun, 8 Dec 2024 18:04:08 -0800	[thread overview]
Message-ID: <ecafc627-bb99-ad96-fe98-15dcc10cdd4f@gmail.com> (raw)
In-Reply-To: <3kfFOVa-wE4cuQ6mTylU2YzWNvA3Mq3luz_5pxjOw6kAdvokerV9_NORU6Di3p59KnUWjObYYLexfe2H0orMQa4PLFBNNzbNhQvN5B_2HSI=@proton.me>

On 12/4/2024 12:47 PM, the_wurfkreuz via Bug reports for GNU Emacs, the 
Swiss army knife of text editors wrote:
> The problem got even more complicated. Now i'm trying to just delete any 
> file, and i can't do that whether i have trashing enabled or not:
> 
> ~/.emacs.d $ (require 'em-tramp)
> em-tramp
> ~/.emacs.d [1] $ eshell/sudo touch /usr/local/bin/test-file
> ~/.emacs.d $ eshell/sudo rm /usr/local/bin/test-file
> Removing old name: Permission denied, /usr/local/bin/test-file

This is the correct behavior; you shouldn't be able to delete the file 
using this method. In short, "/usr/local/bin/test-file" refers to a 
*local* file name, so it's not going through Tramp's "sudo" method, and 
thus it's correct to report that you don't have permission.

Some more detail: Eshell built-in commands like "rm" (which the built-in 
"eshell/sudo" will call) treat absolute file names as ordinary, local 
files, just like the rest of Emacs would. Specifically, it won't 
automatically prepend the "/sudo::" method to it. Doing that is 
bug#70792, which I have a patch for but haven't finished yet.





  reply	other threads:[~2024-12-09  2:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-03 19:51 bug#74674: 30.0.91; Can't delete an empty symlink when trashing is enabled for root the_wurfkreuz via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-04 20:47 ` bug#74674: (No Subject) the_wurfkreuz via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-09  2:04   ` Jim Porter [this message]
2024-12-06 17:35 ` the_wurfkreuz via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-09  1:49 ` bug#74674: 30.0.91; Can't delete an empty symlink when trashing is enabled for root Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ecafc627-bb99-ad96-fe98-15dcc10cdd4f@gmail.com \
    --to=jporterbugs@gmail.com \
    --cc=74674@debbugs.gnu.org \
    --cc=the_wurfkreuz@proton.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).