Permissions Problems

jbarry14

Explorer
Joined
May 23, 2022
Messages
56
I am new to Truenas and I need help with allowing all users to access all files. Running TrueNAS 13.0 U2. We have about 10 users in the office, both windows and Mac. For example, when one of the designers creates a photoshop file and saves it to the TrueNas server. A different user will sometimes not be able to edit that file, or even save anything into that folder that was created. I did create a SMB share at the dataset, unchecked Enable ACL. I then stripped the ACL's from that dataset and just had it open read and write for everyone. But that is still not working all of the time. I would really just like to have the entire dataset open to all users. Is there just an easy way to do this?
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Go to the CLI and type these commands, note that you have to be root for this to work.
Code:
cd /path/to/public/dataset
setfacl -bR .
find . -type d -exec chmod 777 {} \+
find . -type f -exec chmod 666 {} \+


Explanation of what's going on up there line by line:
  1. Navigate to your dataset.
  2. Clear all existing file ACL's and reset everything to basic UNIX permissions.
  3. Change the group owner of all files and directories under this dataset to be the new shared group.
  4. Set all directories (folders) under this dataset to be readable/writable/navigable by new shared group.
  5. Set all files under this dataset to be readable/writable by new shared group.

I just realized that this approach may not work with newly created files. I think for it to work with newly created files, you may have to use ACL's.
I think you can do this in the web UI:
  1. Make a new group and make everyone a member of that group
  2. Storage -> Pools
  3. Select the 3 dots for your dataset -> Edit Permissions
  4. Use ACL Manager
  5. Preset -> OPEN -> Continue
  6. Change group to your new shared group and check the "Apply Group" box.
  7. Scroll down, check "Apply permissions recursively" box.
  8. Save
 
Last edited:
Top