Permission & cron job

Hello,

I’m using TrueNAS-13.0-U6.2

I never quite figured out why, but I must frequently reset the permissions of a specific dataset.

Some files become read-only to some users, even thought the ACL are correctly set: I’m using the restricted ACL preset, the user is configured to me and the group is configured with the correct members.

However, some of the files become read-only even to me!

When I go through the UI and simply select Apply permissions recursively
and Apply permissions to child datasets, everything works again.

Therefore my question is: would it be good practice to set a cron job to do this several times a day (ie: every 3 hours, every day)?

Also, could you help me write the correct command?

Additional info: the dataset is used for a SMB share.