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

From: Michael Albinus <[email-masked]>
Date: Sun, 15 Jun 2025 09:52:32 +0200

Michael McClennen <[email-masked]> 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.