* File ownership changes with save
@ 2007-08-22 20:04 arguellodw
0 siblings, 0 replies; 2+ messages in thread
From: arguellodw @ 2007-08-22 20:04 UTC (permalink / raw)
To: Help-gnu-emacs
When I edit and save a file that is owned by somebody else, emacs gives me
ownership of the newly edited file (say file1.dat) and retains ownership of
the backup file (file1.dat~) for the original owner.
How do I configure emacs to give ownership of the new file to the original
owner?
--
View this message in context: http://www.nabble.com/File-ownership-changes-with-save-tf4313747.html#a12281832
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: File ownership changes with save
[not found] <mailman.5137.1187813997.32220.help-gnu-emacs@gnu.org>
@ 2007-08-22 20:35 ` Lowell Gilbert
0 siblings, 0 replies; 2+ messages in thread
From: Lowell Gilbert @ 2007-08-22 20:35 UTC (permalink / raw)
To: help-gnu-emacs
arguellodw <arguellodw@yahoo.com> writes:
> When I edit and save a file that is owned by somebody else, emacs gives me
> ownership of the newly edited file (say file1.dat) and retains ownership of
> the backup file (file1.dat~) for the original owner.
>
> How do I configure emacs to give ownership of the new file to the original
> owner?
I'd suggest setting `backup-by-copying-when-mismatch'.
I got the information from the documentation for make-backup-files:
make-backup-files is a variable defined in `files.el'.
Its value is t
Documentation:
Non-nil means make a backup of a file the first time it is saved.
This can be done by renaming the file or by copying.
Renaming means that Emacs renames the existing file so that it is a
backup file, then writes the buffer into a new file. Any other names
that the old file had will now refer to the backup file. The new file
is owned by you and its group is defaulted.
Copying means that Emacs copies the existing file into the backup
file, then writes the buffer on top of the existing file. Any other
names that the old file had will now refer to the new (edited) file.
The file's owner and group are unchanged.
The choice of renaming or copying is controlled by the variables
`backup-by-copying', `backup-by-copying-when-linked',
`backup-by-copying-when-mismatch' and
`backup-by-copying-when-privileged-mismatch'. See also
`backup-inhibited'.
You can customize this variable.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-22 20:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-22 20:04 File ownership changes with save arguellodw
[not found] <mailman.5137.1187813997.32220.help-gnu-emacs@gnu.org>
2007-08-22 20:35 ` Lowell Gilbert
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.