[Samba] doc files with attribut r for user

Patrick DUBAU patrick.dubau at alsace.iufm.fr
Tue Sep 18 07:05:16 GMT 2007

John Drescher a écrit :
> On 9/17/07, Patrick DUBAU <patrick.dubau at alsace.iufm.fr> wrote:
>> Hi,
>> i upgraded from Debian sarge to etch, so from samba  3.0.14a-3 to  3.0.24
>> When someone creates/modify a file   the user attribut is set to r
>> (instead of rwx) so the next time a user opens the file is's on read only.
>> What can i do so that the file keeps the attribut rwx for the owner ?
>> Another question : the file has the rigthts : -r--rwx--- but although
>> the user is member of the group the file opens only in read mode,
>> strange no ?
>> My share :
>> [de1-mei]
>> comment = fichiers service de1-mei
>> path = /samba/admin/services/de1-mei
>> writeable = yes
>> directory mask = 2770
>> create mask = 0770
>> valid users = @DE1-MEI
>> inherit acls = yes
>> browseable = no
>> N.B : i noticed that problem for now only with .doc files only
>> (MsOfffice 97)
> I had this a few months back. The problem is that when MS office
> writes to an existing file it first creates a new file then deletes
> the old then renames the new to the old. On windows the OS detects
> this and sets the permissions for the new file to the permissions of
> the recently deleted file. Linux has no such weird behavior so this
> operation fails. A workaround to use create mode to make the default
> permissions for new files to be rw. Here is an 6 year old link to a
> discussion of this:
> http://acl.bestbits.at/pipermail/acl-devel/2001-November/000807.html
> John
Thanks John  for your answer.
But everything worked fine before upgrade OS and samba, so there must be 
another "trick"
What makes the problem more difficult is that  this happens only for a 
few files...

More information about the samba mailing list