Hello All. Samba ver 3.0.25b-1.1.cc Simple problem thats happening on two different servers. Samba is a PDC, users are creating files via windows. My goal is to make each and every file rwxrwx--- . They are being created as rwxrw---- The masks on each share is : browseable = yes writeable = yes create mask = 2770 security mask = 2770 directory mask = 2770 directory security mask = 2770 I've also performed a chmod -R 2770 on the entire share dir. if I add force create mode = 2770 force directory mode = 2770 to each share the new files are created as 770. Is this nessesary? I thought the create masks would be sufficient. I dont want to use too many unessesary options on each share. If anyone can assist cleaning it up that would be very helpful. Thanks The Burnsteads New Puget Sound Homes See our Homes of Distinction. http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=7cf9a6dded017d2ec085bf51bae10a7d -- Powered by Outblaze
Michael Heydon
2008-Jun-24 23:50 UTC
[Samba] Create masks set to 770 yet new files created as 750
Jeff L wrote:> <snip> > The masks on each share is : > > browseable = yes > writeable = yes > create mask = 2770 > security mask = 2770 > directory mask = 2770 > directory security mask = 2770 > > I've also performed a chmod -R 2770 on the entire share dir. > > if I add > > force create mode = 2770 > force directory mode = 2770 > > to each share the new files are created as 770. > > Is this nessesary? I thought the create masks would be sufficient. > <snip> >Yes it is. From the smb.conf man page: [The] resulting UNIX mode is then bit-wise 'AND'ed with this parameter. This parameter may be thought of as a bit-wise MASK for the UNIX modes of a file. **Any bit not set here will be removed from the modes set on a file when it is created.** So the masks define which bits CAN be set, the force modes define which bits WILL be set. *Michael Heydon - IT Administrator * michaelh@jaswin.com.au <mailto:michaelh@jaswin.com.au>
Helmut Hullen
2008-Jun-25 07:25 UTC
[Samba] Create masks set to 770 yet new files created as 750
Hallo, Jeff, Du (jeff80) meintest am 25.06.08:> My goal is to make each and every file rwxrwx--- .> create mask = 2770 > security mask = 2770 > directory mask = 2770 > directory security mask = 2770[...]> force create mode = 2770 > force directory mode = 2770"mask" and "mode" are identical. "create mask" and "directory mask" make an "AND", in your case they delete the "other" bits. "force xyz mask" makes an "OR", it sets every defined bit. Viele Gruesse! Helmut