Ubuntu 22.04 - Samba Share Permissions Incorrectly Apply to New Files Created by Windows Clients
I need some guidance on After trying multiple solutions online, I still can't figure this out. I'm experiencing an scenario with Samba shares on my Ubuntu 22.04 server. The share is correctly set up to allow read and write permissions, but any new files created by Windows clients on the share inherit permissions that are not what I intended. Instead of the specified permissions, new files are created with the owner set to the Windows user and a permission mask of 644, which prevents the group from writing to them. I've set up the Samba share in my `/etc/samba/smb.conf` file as follows: ```ini [shared] path = /srv/samba/shared writable = yes browseable = yes guest ok = no valid users = @sambashare force group = sambashare create mask = 0660 directory mask = 0770 ``` I also ensured that the directory permissions are set correctly: ```bash sudo chown :sambashare /srv/samba/shared sudo chmod 2770 /srv/samba/shared ``` I've tried restarting the Samba service with `sudo systemctl restart smbd` and verifying the Samba user permissions with `pdbedit -L`, but the question continues. I'm wondering if there's something I might be missing in the configuration that affects how permissions are set for new files created by clients. Any insights on how to resolve this would be greatly appreciated! What's the correct way to implement this? What would be the recommended way to handle this?