Hello, On a Linux partition, I'd like new files to be created as "rw r r". 0133 doesn't seem to be the right mask for that pupose. Does someone know what I should use instead? Thank you. ============ fdisk -l Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors Disklabel type: dos Device???? Boot Start??????? End??? Sectors?? Size Id Type /dev/sda1? *???? 2048 1887105023 1887102976 899.8G 83 Linux ============ smb.conf [write] ... force create mode = 0644 ;create mask = 0664 create mask = 0133 ;how to get rw r r? ============ Copied file from Windows through Samba -rwxrw-rw-? 1 nobody 9062 Oct 25 12:18 copiedfromWindows.txt*
Havany Hi, Did you try 133 mask instead of 0133 ? We use to disable acl for this kind of share and do something like that : [share] path = /a/share/path create mask = 133 directory mask = 022 valid users = @agroup write list = @sagroup force group = @agroup nt acl support = No Regards, Arnaud Cruzel Le 25/10/2024 ? 12:25, Gilles via samba a ?crit?:> Hello, > > On a Linux partition, I'd like new files to be created as "rw r r". > > 0133 doesn't seem to be the right mask for that pupose. > > Does someone know what I should use instead? > > Thank you. > > ============ fdisk -l > Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors > Disklabel type: dos > > Device???? Boot Start??????? End??? Sectors?? Size Id Type > /dev/sda1? *???? 2048 1887105023 1887102976 899.8G 83 Linux > > ============ smb.conf > > [write] > ... > force create mode = 0644 > ;create mask = 0664 > create mask = 0133 ;how to get rw r r? > > ============ Copied file from Windows through Samba > > -rwxrw-rw-? 1 nobody 9062 Oct 25 12:18 copiedfromWindows.txt* > >
On 25.10.2024 13:25, Gilles via samba wrote:> Hello, > > On a Linux partition, I'd like new files to be created as "rw r r". > > 0133 doesn't seem to be the right mask for that pupose. > > Does someone know what I should use instead?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. /mjt