Subject: Re: 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: Tue, 24 Jun 2025 08:55:18 +0200

Richard Stallman <[email-masked]> writes:

Hi Richard,

> When Emacs saves a file directly, its preferred method is to write the
> file under another name and then ewnames it into the desired name.
> That is to avoid problems like this.
>
> Should Tramp do it that way too?

This is what Tramp does. It writes the file to a local temporary name,
and copies it then to the remote side. The error happened when calling
"chmod ..."  afterwards.

Best regards, Michael.