436 private links
Secret #1: Five different things affect file permissions
No one just comes out and says it. I had to really delve into how things are set up to figure this out.
Otherwise, you’ll be stuck with files that get permissions that you swear you didn’t set. It will drive you insane. Once I started to see how all the parts worked together, it made more sense.
The five things controlling file permissions are:
- Unix file and folder permissions
- Samba share permissions
- ZFS dataset permissions
- ZFS ACL
- umask
That’s right, five things! Crazy. Each of those things can affect the permissions of files and folders created in your Samba shares in Xigmanas. Before this weekend, I only knew about #1, #2, and #3, but #4 and #5 were little sneaky surprises.
Secret #2: You need to restart Samba after every change
When you change settings on your Samba shares in Xigmanas and then apply them, you’d expect the changes to take effect. After all, that’s how Xigmanas works for everything else. But, not here.
You must restart Samba after making changes, especially around permissions and inheritance, in order for them to take effect.
To do this, just go to Services > CIFS/SMB, then click the Save & Restart button at the bottom of the page.