Re: tramp (2.0.52); Saving files changes ownership

2007-10-31 Thread Gilles Pion
Michael Albinus wrote: Gilles Pion [EMAIL PROTECTED] writes: I've downloaded the latest emacs CVS snapshot (23.0.50.1), What do you mean by this? An emacs-snapshot package as offered for example for Debian/Ubuntu, or just the files taken from Emacs CVS? I would recommend the latter

Re: tramp (2.0.52); Saving files changes ownership

2007-10-31 Thread Gilles Pion
Michael Albinus wrote: In fact *very* strange things are happening regarding file ownership when accessed via tramp: If this still happens with very recent Tramp 2.1.12-pre, please provide traces with tramp-verbose of 8. Best would be a message generated via `tramp-bug', including the

Re: tramp (2.0.52); Saving files changes ownership

2007-10-31 Thread Michael Albinus
Gilles Pion [EMAIL PROTECTED] writes: Hi Gilles, I've now removed from site-lisp my old tramp 2.1.11 which was hiding 2.1.12 . Everything seems to work ok regarding files modes. Thanks for the feedback. Good to know that it works for you. In fact, Tramp releases shall be the most recent

Re: tramp (2.0.52); Saving files changes ownership

2007-10-30 Thread Gilles Pion
Sorry to jump into this thread, but I have the same problem and is not solved for me I've downloaded the latest emacs CVS snapshot (23.0.50.1), I'm using tramp 2.1.11 Files accessed with /scpc2:root@hostname:/path/to/file still revert to root owner when saved Sascha Wilde-3 wrote: Michael

Re: tramp (2.0.52); Saving files changes ownership

2007-10-30 Thread Gilles Pion
In fact *very* strange things are happening regarding file ownership when accessed via tramp: * inside shell session as user A on node N: touch /tmp/zz * /tmp/zz owner is user A * editing zz as root via tramp (/[EMAIL PROTECTED]:/tmp/zz) * making changes * save file * file owner is now root *

Re: tramp (2.0.52); Saving files changes ownership

2007-10-30 Thread Michael Albinus
Gilles Pion [EMAIL PROTECTED] writes: Hi Gilles, In fact *very* strange things are happening regarding file ownership when accessed via tramp: If this still happens with very recent Tramp 2.1.12-pre, please provide traces with tramp-verbose of 8. Best would be a message generated via

Re: tramp (2.0.52); Saving files changes ownership

2007-10-22 Thread Sascha Wilde
Michael Albinus [EMAIL PROTECTED] writes: Sascha Wilde [EMAIL PROTECTED] writes: No, at a quick test it didn't. I applied your patch (assuming it were an revert patch), reevaluated backup-buffer-copy, visited and saved a remote file, but with the same result, the group was changed... [...]

Re: tramp (2.0.52); Saving files changes ownership

2007-10-21 Thread Michael Albinus
Sascha Wilde [EMAIL PROTECTED] writes: Tramp 2.1.11 respects now the parameter PRESERVE-UID-GID of `copy-file'. Does the following patch (files.el in Emacs trunk) help? No, at a quick test it didn't. I applied your patch (assuming it were an revert patch), reevaluated backup-buffer-copy,

Re: tramp (2.0.52); Saving files changes ownership

2007-10-19 Thread Sascha Wilde
Michael Albinus [EMAIL PROTECTED] writes: Sascha Wilde [EMAIL PROTECTED] writes: The file /path/to/example on host bob is owned by root.foo visiting it from another host as /ssh:[EMAIL PROTECTED]:/path/to/example editing and saving leads to it being owned by root.root. I have

Re: tramp (2.0.52); Saving files changes ownership

2007-10-18 Thread Sascha Wilde
Sascha Wilde [EMAIL PROTECTED] writes: Kai Großjohann [EMAIL PROTECTED] writes: [Editing existing files as root changes ownership] See variables backup-by-copying and backup-by-copying-*. (Emacs behaves the same when run as root and editing the file normally.) Was that it? Yes, thanks!

Re: tramp (2.0.52); Saving files changes ownership

2007-10-18 Thread Michael Albinus
Sascha Wilde [EMAIL PROTECTED] writes: The file /path/to/example on host bob is owned by root.foo visiting it from another host as /ssh:[EMAIL PROTECTED]:/path/to/example editing and saving leads to it being owned by root.root. I have backup-by-copying set to t. Any Ideas? Tramp 2.1.11