GNU bug report logs - #78638
30.1; When editing a remote file owned by another user, Tramp signals an error because it cannot change the file mode

Previous Next

Package: emacs;

Reported by: Michael McClennen <mmcclenn <at> geology.wisc.edu>

Date: Thu, 29 May 2025 21:10:02 UTC

Severity: normal

Found in version 30.1

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Michael McClennen <mmcclenn <at> geology.wisc.edu>
Cc: Eli Zaretskii <eliz <at> gnu.org>, "78638 <at> debbugs.gnu.org" <78638 <at> debbugs.gnu.org>
Subject: bug#78638: 30.1; When editing a remote file owned by another user, Tramp signals an error because it cannot change the file mode
Date: Sun, 15 Jun 2025 09:52:32 +0200
Michael McClennen <mmcclenn <at> geology.wisc.edu> writes:

> Hi Michael,

Hi Michael.

> However, I think the best long-term solution would be to fix Tramp so
> as not to make this step necessary. Perhaps a check could be added so
> that the chmod command is not run unless the remote file is owned by
> the user?

We've discussed this already on the Tramp ML, see
<https://lists.gnu.org/archive/html/tramp-devel/2024-04/msg00005.html>. I
believe it would be too much testing in Tramp, with related performance
degradation. The test needs to be more complex, not only for the ownership
of the file. As you have shown, on macOS (and *BSD, see my other message
to Eli), it works also for files not owned by the same user.

So no, use the option.

>   — Michael McClennen

Best regards, Michael.




This bug report was last modified 31 days ago.

Previous Next


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