Writing to file resets owjner/group/mode

Robert Dahlem Robert.Dahlem at frankfurt.netsurf.de
Sat Dec 12 16:58:48 GMT 1998


Marc,

>I have a file called /etc/exim/config that is required to be owned by
>mail.mail, mode 664. My user account is called mh and I am member of
>the group mail. I'd like to edit that file via samba with an editor
>that is running on my desktop Windows box.
>
>Whenever I write to the file, it gets reset to mh.mh 744 which breaks
>the mail system reading its configuration from that file. I suspect
>this happens because the editor might be renaming the old file,
>writing a new one and then deleting the old file.

Yes.

>Can this behaviour be controlled by configuring samba?

No.

Besides of using another editor you could do something like

[exim]
   path = /etc/exim
   force user = mail
   force group = mail
   force create mode = 0664

Hasta la vista,
               Robert

-- 
---------------------------------------------------------------
Robert.Dahlem at frankfurt.netsurf.de
Radio Bornheim - 2:2461/332 at fidonet +49-69-4930830  (ZyX, V34)
                 2:2461/326 at fidonet +49-69-94414444 (ISDN X.75)
---------------------------------------------------------------



More information about the samba mailing list