Thread View: gnu.epoch.misc
5 messages
5 total messages
Started by Mike Kelley
Wed, 02 Sep 1992 15:12
Ownership of files modified by emacs
Author: Mike Kelley
Date: Wed, 02 Sep 1992 15:12
Date: Wed, 02 Sep 1992 15:12
15 lines
1149 bytes
1149 bytes
I am using Epoch 4.0.25 (yes, I know it's not the most recent, but I suspect this question is relevant for most versions of Epoch and emacs) on HP 9000 platforms (300s, 400s, 700s) running HP-UX 8.07. 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. Thanks for any help. this request cross-posted to gnu.epoch.misc and gnu.emacs.help -- Mike Kelley Bldg 220, Rm B206 National Institute of Standards and Technology Gaithersburg, MD 20899 (301) 975-3722 FAX (301) 926-2746 INTERNET: kelley@epg.nist.gov BITNET: mkelley@nbsenh.BITNET
Re: Ownership of files modified by emacs
Author: Brad Miller
Date: Wed, 02 Sep 1992 16:09
Date: Wed, 02 Sep 1992 16:09
25 lines
1730 bytes
1730 bytes
>>>>> On 2 Sep 92 15:12:16 GMT, kelley@kelley.nist.gov (Mike Kelley) said: > Followup-To: gnu.epoch.misc > 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. On a somewhat related note, I am using epoch 4.2 on an SGI runing IRIX 4.0.1. When I save a file, such as a shell script, it is no longer executable. Is there something I can configure to fix this, or is this a bug?? Brad -- Brad Miller | e-mail: bradm@ems.cdc.com | Empros Systems International | v-mail: (612) 553-4886 | 2300 Berkshire Lane N. |Disclaimer: "I see no reason to contradict | Plymouth, MN 55441 | myself at all" George H.W. Bush | --------------------------------------------------------------------------------
Re: Ownership of files modified by emacs
Author: 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
Re: Ownership of files modified by emacs
Author: Fritz Keinert
Date: Thu, 03 Sep 1992 18:08
Date: Thu, 03 Sep 1992 18:08
15 lines
1302 bytes
1302 bytes
In article <BRADM.92Sep2160916@anchor.anchor.ems.cdc.com> bradm@anchor.anchor.ems.cdc.com (Brad Miller) writes: >On a somewhat related note, I am using epoch 4.2 on an SGI runing IRIX 4.0.1. >When I save a file, such as a shell script, it is no longer executable. > >Is there something I can configure to fix this, or is this a bug?? I have noticed the same with epoch 4.1 on a DECstation 2100 running Ultrix 4.2. It does not always happen, but most of the time. I reported this bug before; apparently, it has not been fixed yet. -- Fritz Keinert phone: (515) 294-5223 Department of Mathematics fax: (515) 294-5454 Iowa State University e-mail: keinert@iastate.edu Ames, IA 50011
Re: Ownership of files modified by emacs
Author: Brad Miller
Date: Fri, 04 Sep 1992 07:14
Date: Fri, 04 Sep 1992 07:14
23 lines
1858 bytes
1858 bytes
>>>>> On 3 Sep 92 18:08:51 GMT, keinert@iastate.edu (Fritz Keinert) >>>>> said: FK> In article <BRADM.92Sep2160916@anchor.anchor.ems.cdc.com> bradm@anchor.anchor.ems.cdc.com (Brad Miller) writes: >On a somewhat related note, I am using epoch 4.2 on an SGI runing IRIX 4.0.1. >When I save a file, such as a shell script, it is no longer executable. > >Is there something I can configure to fix this, or is this a bug?? FK> I have noticed the same with epoch 4.1 on a DECstation 2100 running FK> Ultrix 4.2. It does not always happen, but most of the time. Well, The post regarding changing the backup-by-copying variable does in fact fix this problem as well. Brad -- -------------------------------------------------------------------------------- Brad Miller | e-mail: bradm@ems.cdc.com | Empros Systems International | v-mail: (612) 553-4886 | 2300 Berkshire Lane N. |Disclaimer: "I see no reason to contradict | Plymouth, MN 55441 | myself at all" George H.W. Bush | --------------------------------------------------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads