From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jo Vermeulen Newsgroups: gmane.emacs.bugs Subject: bug#7289: Tramp changes ownership of remote file when saving Date: Wed, 27 Oct 2010 12:46:11 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1288178046 18979 80.91.229.12 (27 Oct 2010 11:14:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2010 11:14:06 +0000 (UTC) To: 7289@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 27 13:14:05 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PB3x9-00065p-FH for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Oct 2010 13:14:00 +0200 Original-Received: from localhost ([127.0.0.1]:39832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PB3x8-0003LH-N6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Oct 2010 07:13:58 -0400 Original-Received: from [140.186.70.92] (port=60159 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PB3wb-00039N-KZ for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2010 07:13:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PB3wE-0002k3-A4 for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2010 07:13:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PB3wE-0002jz-5r for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2010 07:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PB3dr-0002r5-7C; Wed, 27 Oct 2010 06:54:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jo Vermeulen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Oct 2010 10:54:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7289 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit Original-Received: via spool by submit@debbugs.gnu.org id=B.128817679410955 (code B ref -1); Wed, 27 Oct 2010 10:54:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Oct 2010 10:53:14 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PB3d2-0002qc-U7 for submit@debbugs.gnu.org; Wed, 27 Oct 2010 06:53:13 -0400 Original-Received: from mail-qw0-f44.google.com ([209.85.216.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PB3Sb-0002lD-Sc for submit@debbugs.gnu.org; Wed, 27 Oct 2010 06:42:26 -0400 Original-Received: by qwb7 with SMTP id 7so555438qwb.3 for ; Wed, 27 Oct 2010 03:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=iDgdF7Frk93sBeWBr5LIpHhofN6MTyWVZpPFaJ0Wv+Y=; b=byPfHIZjVNesJPBVXOsryehPzovCvWlu9bqC65f6zxauQbBlD+Qj0e0wB3gcU1C2dE CQ2DtTz7IxuMtE6vCg4Vap26weijgWBlIkH2y1kbRkDjhYut3aV0GoVfwJEo45GAApCt 3HeQs45V6Okl4RHcjQdc3V2nrSiVafQhAqCwg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=xtjifvAv5taBHqxT5qndoORP60cbso6s8vn95LJC14lGASoozzN9Y1QlTBvQQywpV1 rHqcKAMppgKD//0Iiur4n5Er/i/AGftiSFK400Rn5lO6DI4GfopHOAHi52A3o14ZUupl XlcA0FGcYf3PfRFauJ6p5HEpI+U/CTXTuaYpg= Original-Received: by 10.229.240.79 with SMTP id kz15mr1308197qcb.200.1288176391990; Wed, 27 Oct 2010 03:46:31 -0700 (PDT) Original-Received: by 10.229.127.99 with HTTP; Wed, 27 Oct 2010 03:46:11 -0700 (PDT) X-Mailman-Approved-At: Wed, 27 Oct 2010 06:53:10 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 27 Oct 2010 06:54:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41165 Archived-At: Package: emacs Version: 23.1 Severity: important When editing a remote file over SSH using tramp, emacs changes the ownership of the file. I was logged in as root, and the file had ownership svn:svn. After saving, however, emacs changed the ownership to root:root. The backup file (filename~) did have the user/group settings however. This behavior is quite annoying, as one often doesn't realize the ownership has changed. This might result in services that are unable to read their basic configuration files after they have been edited remotely with emacs. P.S.: my apologies for double-posting, I first thought the package name should be tramp instead of emacs. Here's more information about my specific version of Emacs (running on Ubuntu 10.10): In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-03-29 on rothera, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10900000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Help Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t view-mode: t Recent input: C-x C-d / u s r s h e m a / 2 3 e p r P R C-x o C-x o C-x o C-x 1 M-x d i r e - m o d w d i r d i r e d - m C-s P R O B L E M C-s t r a m p C-s r e m o t e C-s C-s C-s s s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-x k C-x k M-x r e p o r t - e m a c s Recent messages: Loading /etc/emacs/site-start.d/50org-mode.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/50w3m-el.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [2 times] help-follow: No cross-reference here [3 times] Making completion list... [2 times] Mark saved where search started Note: file is write protected Mark saved where search started