Samba share writable to everyone, even if someone else created the files?
I have a public SMB share mainly as a media dump. Everyone can read and write, without any auth - as intended. However, if I copy files via SSH (as a regular user, not the samba user), these files are of course owned by that user and thus not writable for the samba user - so I can’t touch these files via SMB.
My config looks like this
<span style="color:#323232;">[public]
</span><span style="color:#323232;"> path = /path/to/samba/public
</span><span style="color:#323232;"> guest ok = yes
</span><span style="color:#323232;"> writeable = yes
</span><span style="color:#323232;"> browseable = yes
</span><span style="color:#323232;"> create mask = 0664
</span><span style="color:#323232;"> directory mask = 0775
</span><span style="color:#323232;"> force user = sambapub
</span><span style="color:#323232;"> force group = users
</span>
I can fix the permissions by simply chown/chmod all files, but that’s not really a solution.