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)
On 9/17/07, Patrick DUBAU <patrick.dubau@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
Le lundi 17 septembre 2007, Patrick DUBAU a ?crit?:> Hi, >[...]> > 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 ? >No, that is perfectly normal if the user used to open the file is the owner of the file. -- Francis Galiegue, One2team - fg@one2team.com [ATTENTION : CHANGEMENT DE COORDONN?ES !] +33178945570, +33683877875, http://www.one2team.com 40 avenue Raymond Poincar? - 75116 PARIS
Patrick DUBAU a ?crit :> 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) >putting : winbind nested groups = No in global section solved my problem (it's 'yes' by default for samba 3.0.24)