Article View: gnu.epoch.misc
Article #246Re: Ownership of files modified by emacs
From: Barry Margolin
Date: Thu, 03 Sep 1992 05:24
Date: Thu, 03 Sep 1992 05:24
19 lines
1362 bytes
1362 bytes
In article <5323@dove.nist.gov> kelley@kelley.nist.gov (Mike Kelley) writes:
>My question is - How do I teach Epoch (or emacs) to preserve the ownership
>of files when they are edited and resaved? Currently, if I modify a file
>owned by userxxx and resave it, it is then owned by me. I think (unless
>someone can point out why not) I would prefer that the original ownership
>be preserved.
Take a look at the various option variables whose names begin with
"backup-by-copying". The ownership change occurs because Emacs renames the
original file to the backup file and then writes a brand new file (which is
therefore owned by you). If backup by copying is done, Emacs writes into
the original file, so the ownership doesn't change.
P.S. Please try to keep the lines in your postings under 80 columns wide.
--
Barry Margolin
System Manager, Thinking Machines Corp.
barmar@think.com {uunet,harvard}!think!barmar
Technical Details
Message-ID:
<1847iqINN19k@early-bird.think.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!think.com!barmarReferences:
<5323@dove.nist.gov>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!think.com!barmar From: barmar@think.com (Barry Margolin) Newsgroups: gnu.epoch.misc Subject: Re: Ownership of files modified by emacs Date: 3 Sep 1992 05:24:42 GMT Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 19 Message-ID: <1847iqINN19k@early-bird.think.com> References: <5323@dove.nist.gov> NNTP-Posting-Host: gandalf.think.com