linux-l: Zwei Fragen....

Peter Alban pit at platsch.in-berlin.de
Di Nov 18 09:24:30 CET 1997


Alfred Schweder <alf at wysiwyg.in-berlin.de> writes:

> Hi.
> 
> > Hm wie jetzt , wenn ich als root eine Datei editiere die einem anderen
> > gehort andern sich keine rechte und auch nicht der owner... die gruppe
> > naturlich auch nicht...
> Das stimmt nicht in jedem Fall.
> 
> Bei zB dem "vi" ja. Er erstellt bei Bedarf eine Kopie und arbeitet auf dem Original.
> Beim "emacs" nein.  Er benennt das Original um und erstellt bei der Bearbeitung
> 	ein neues File, was dann natuerlich dem "Editor" gehoert.
> 	
> 										ALF

Bei Emacs kann man das über die Variabel backup-by-copying einstellen.
Documentation:
 *Non-nil means always use copying to create backup files.
 See documentation of variable `make-backup-files'.

 make-backup-files:
  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 XEmacs 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 XEmacs 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' and
  `backup-by-copying-when-mismatch'.  See also `backup-inhibited'.


-- 
Peter Alban			|  Email: pit at platsch.in-berlin.de
Berlin Kreuzberg		|  oder   pit at cs.tu-berlin.de
Fax: +49 30 69040622		|  Tele:  +49 30 69040621




Mehr Informationen über die Mailingliste linux-l