Hi, I have an issue whereby when I create a new file it obeys the create mask defined for the share but when I copy a file from within the same directory the file is created without write permssions for the primary group. Ie: directory has permissions 770, existing file has permissions of 770, create mask is 0770. When I copy a file its permissions are 750. However when creating a new file permissions are correctly set to 770. I'm a bit stumped really, surely create mask should work regardless of whether I'm copying or creating files? Or is the windows client somehow trying to read the permssions of the existing file and is doing a bad job of copying the permissions to the new file? the environment is Ubuntu 14 LTS and samba 4.3 thanks, Andy.
It looks like "force create mode" has solved this, despite googling it not really sure why its necessary to have both "force create mode" and "create mask" options...
https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html read : create mode => create mask (S) force create mode (S) force directory mode (S Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Andy Smith via > samba > Verzonden: woensdag 1 februari 2017 14:02 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] create mask, create vs copy file > > It looks like "force create mode" has solved this, despite googling it > not really sure why its necessary to have both "force create mode" and > "create mask" options... > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Am 01.02.2017 um 14:30 schrieb L.P.H. van Belle via samba:> https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html > read : > > create mode => create mask (S) > force create mode (S) > force directory mode (Sand then comes the windows or apple client and changes permissions ignoring even "nt acl support = no" which removes the ability to fix them from explorer but don't prevent to change them>> -----Oorspronkelijk bericht----- >> Van: samba [mailto:samba-bounces at lists.samba.org] Namens Andy Smith via >> samba >> Verzonden: woensdag 1 februari 2017 14:02 >> Aan: samba at lists.samba.org >> Onderwerp: Re: [Samba] create mask, create vs copy file >> >> It looks like "force create mode" has solved this, despite googling it >> not really sure why its necessary to have both "force create mode" and >> "create mask" options... >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba