Unable to add execute permission to parent dataset

lonewaffle

Cadet
Joined
Jul 29, 2023
Messages
4
Apologies if you feel like this has been asked ad nauseum. I've seen many similar threads, but haven't come across any with my exact issue yet.

I just migrated from TrueNAS Core to Scale (running 22.12.3.3) and started setting up my apps again. I'm finding that the ACLs needed to be adjusted for my new apps and I'm unable to do so. My storage structure is /mnt/SafeStorage01/Media and when I go to add an ACL on the Media dataset, it tells me:

"[EPERM] Filesystem permissions on path /mnt/SafeStorage01 prevent access for user "plex" to the path /mnt/SafeStorage01/Media. This may be fixed by granting the aforementioned user execute permissions on the path: /mnt/SafeStorage01."

From the shell, I can see that there is no execute permission for "other":
root@S1-NAS-01[~]# stat /mnt/SafeStorage01
File: /mnt/SafeStorage01
Size: 35 Blocks: 24 IO Block: 33280 directory
Device: 2ah/42d Inode: 4 Links: 4
Access: (0770/drwxrwx---) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2023-07-29 14:04:43.880394997 -0600
Modify: 2023-07-29 15:01:08.800488353 -0600
Change: 2023-07-29 15:01:08.800488353 -0600
Birth: 2017-04-28 14:09:09.031854934 -0600

When I run "chmod 755 /mnt/SafeStorage01" I get "Operation not permitted"

I noticed the parent "SafeStorage01" dataset (zvol?) is set to NFSv4 permissions, but I have no shares currently configured on it. Perhaps I did at some point in the past.

Anyway, I try running getfacl to see what's going on there:
root@S1-NAS-01[~]# getfacl /mnt/SafeStorage01
getfacl: Removing leading '/' from absolute path names
# file: mnt/SafeStorage01
# owner: root
# group: root
user::rwx
group::rwx
other::---

Yup, no execute for "other", so I try to set it:
root@S1-NAS-01[~]# setfacl -m other::x /mnt/SafeStorage01
setfacl: /mnt/SafeStorage01: Operation not permitted

Can someone please help me add execute to "other" so that I can successfully manage the ACLs for child datasets?
 

lonewaffle

Cadet
Joined
Jul 29, 2023
Messages
4
For anyone else, I managed to fix this by running "nfs4xdr_setfacl -e /mnt/SafeStorage01" and manually editing the permissions to add the execute flag. I think I also rebooted TrueNAS afterward. What a pain it was to find that obscure nonsense.
 
Top