On Mon, 28 Oct 2024 12:26:30 +0100 Gilles via samba <samba at lists.samba.org> wrote:> On 26/10/2024 15:24, Michael Tokarev wrote: > > You need create mask = 0755 (or 0644, but watch for directory > > mask).? This is not like the unix umask thing, this it the > > reverse of it.? Please re-read man 5 smb.conf, it is pretty > > clear about this, with examples.? More, the default value is > > exactly what you need. > > > > Speaking of the X bits, these are mapped to DOS attributes, > > archive/hidden/system.? For these, see `store dos attributes` > > and `map system`, `map hidden` etc in smb.conf manpage. > > Using "force create mode = 0644", a new file is still rwx r r, not rw > r r as expected :-/ > > The man page > <http://mrtg.easyco.net/easydocs/linux/man/man5/smb.conf.htm> doesn't > include "store dos attributes".Your link appears to point to the smb.conf manpage for Samba 1.9.18, just what version of Samba are you using ? On what OS ? If you are using vfs_acl_xattr, then you shouldn't be using any 'force' parameters in smb.conf. Rowland
On 28/10/2024 12:37, Rowland Penny via samba wrote:>> The man page >> <http://mrtg.easyco.net/easydocs/linux/man/man5/smb.conf.htm> doesn't >> include "store dos attributes". > Your link appears to point to the smb.conf manpage for Samba 1.9.18, > just what version of Samba are you using ? On what OS ?I didn't know what version if refered to. Samba? 4.13.13 on Debian 11.> If you are using vfs_acl_xattr, then you shouldn't be using any 'force' > parameters in smb.conf.I'm not using that option. Just a plain single-server, no DC, without Samba accounts, and a shared "nobody" account. Couldn't be simpler: ============~# cat /etc/samba/smb.conf [global] workgroup = WORKGROUP netbios name = DEBIAN security = user map to guest = Bad User ; maps to "nobody" in /etc/passwd log level = 2 ;this avoids needless errors in the logs if you have no printer printcap name = /dev/null load printers = no printing = bsd [write] path = /Backup ;comment = No need for Unix/Samba passwords guest ok = yes writeable=yes browseable=yes force create mode = 0644 ; how to get files to be created as rw r r ?????? =============