From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Preserve permissions after backup? Date: Sun, 26 Jan 2003 21:45:47 +0100 Organization: University of Duisburg, Germany Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <84fzrfej2c.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043614404 24028 80.91.224.249 (26 Jan 2003 20:53:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 26 Jan 2003 20:53:24 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ctmN-0006FQ-00 for ; Sun, 26 Jan 2003 21:53:23 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18ctqF-0003GY-00 for ; Sun, 26 Jan 2003 21:57:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ctic-000153-09 for emacs-devel@quimby.gnus.org; Sun, 26 Jan 2003 15:49:30 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18cti2-0000k2-00 for emacs-devel@gnu.org; Sun, 26 Jan 2003 15:48:54 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18cthC-0008KF-00 for emacs-devel@gnu.org; Sun, 26 Jan 2003 15:48:18 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ctgi-0007Zi-00 for emacs-devel@gnu.org; Sun, 26 Jan 2003 15:47:32 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18cteU-0005n5-00 for ; Sun, 26 Jan 2003 21:45:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18cteU-0005mw-00 for ; Sun, 26 Jan 2003 21:45:14 +0100 Original-Lines: 16 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:HW/g6PcTQ901iOJIlw2Qk2qmGbY= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11099 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11099 A Tramp user is reporting that the permissions of a root-owned file change after he edits it with Tramp (the su method). I'm guessing that's because Tramp does backup by renaming and creates a new file with default permissions. Is there some machinery in Emacs which is designed to prevent things like this from happening? I guess there must be a bug in Tramp which prevents this machinery from working. I investigated the backup-by-copying variables but these don't talk about the permissions, only the owner and group. Or is backup-by-copying the right approach and I (and the user) just need to make sure that it is used for the file(s) in question? -- Ambibibentists unite!