Hi all,
I’m stuck on this problem. I recently set up a NAS using TrueNAS, but I’m having a permission issue.
When I create a folder or file using FileBrowser, I can’t open it from my SMB share. However, if I create the folder or file from SMB, I have no problem opening or interacting with it in FileBrowser.
After some research, I found the issue might be related to permissions. I’ve already set a recursive ACL, so in theory the permissions should be fine. But when I create a folder/file via FileBrowser, I get strange permissions.
For example, when I run getfacl /mnt/data-pool/dataset/folder/file
on a file I created from FileBrowser, it shows effective:r-x
for my SMB user.
Why is this happening? In my ACL on TrueNAS, my SMB user is set to have full control (rwx
).
Sounds like you’d benefit from a refresher on unix file permissions:
https://linuxize.com/post/understanding-linux-file-permissions/
Remember that when looking at an SMB share from an SMB client, you’re doing so with the permissions afforded the account you used to authenticate when you connected, and that this can be a combination of the file system permissions, and the samba share settings/ACL.
But when using FileBrowser you’re using the permissions available to the FileBrowser process (most likely running as the ‘apps’ user). Any samba settings are irrelevant to the FileBrowser.
Yeah, I understand. So how can I fix this? I want to be able to create files/folders via FileBrowser and still interact with them in the SMB share.
I’ve also created a separate user for FileBrowser instead of using the apps
user.
Both the filebrowser
user and my Samba user have the same rwx
permissions, and I’ve already applied them recursively. Am I doing something wrong?