SOLVED! Re: [Samba] Files are being saved as read-only
Rob Tanner
rtanner at linfield.edu
Tue Jun 27 17:14:46 GMT 2006
Logan,
That is exactly the case. In fact, sometimes you can even see the
original (now renamed) file for a second or so before it disappears.
-- Rob
Logan Shaw said the following on 06/26/2006 04:10 PM:
> On Mon, 26 Jun 2006, Rob Tanner wrote:
>
>> It turns out that the problem is a Microsoftism since it only happens
>> with Office documents. It also tiurns out that only if profile acls
>> is set to 'yes' in smb.conf do you see the problem. Set it to 'no'
>> and no problem. Wierd eh??
>
>
> I believe I remember hearing somewhere that, instead of (the Win32
> equivalent of) "open(); write(); write(); write(); close();", lots
> of MS products first create a new file, then write the save data
> to the new file, then remove the old file, then rename the new to
> have the same name as the old[1].
>
> The point being, when these apps are saving a file, they're not
> updating an existing file; instead, they're CREATING a new file.
> So, I would check if new files are created read-only by default;
> maybe that is the real problem.
>
> - Logan
>
> [1] There is some benefit to this approach: you've always
> got a complete copy of the file on disk at any given time,
> for one thing.
More information about the samba
mailing list