Lost root access on my dataset after failed app install

Hello, I have a built a diy NAS, Jonsbo N3 build with 5 x 8TB HDs, Gigabyte MB, 16GB RAM, Intel i5. M.2 SSD. Running TrueNAS Scale Dragonfish-24.04.2.5

After trying to install a file manager app, I think it was Nextcloud, which failed incidentally. The permissions on my top level dataset have bene replaced from root to Netdata. I can no longer access my share folders from my PC.

The system is used as a plex media server and has 12TB of data currently copied over. I can copy all this data back to my PC but it will take some time and I would prefer another option if possible. Although, as it stands, I can’t access the shared folders to copy the data back.

I have tried creating new shares and datasets but each time I get an access denied error message. ‘[EINVAL] pool_dataset_create.share_type: Filesystem permissions on path /mnt/BatNAS prevent access for group “builtin_users” to the path /mnt/BatNAS/Radarr. This may be fixed by granting the aforementioned group execute permissions on the path: /mnt/BatNAS.’

The error suggest granting the permission but as mentioned I am unable to do this as there is no option to edit the permissions on the top level dataset, and I understand this is by design, but is it possible to fix this another way? TIA

I have tried creating new shares and datasets but each time I get an access denied error message. ‘[EINVAL] pool_dataset_create.share_type: Filesystem permissions on path /mnt/BatNAS prevent access for group “builtin_users” to the path /mnt/BatNAS/Radarr. This may be fixed by granting the aforementioned group execute permissions on the path: /mnt/BatNAS.’

This most likely means that your app changed permissions on /mnt/BatNAS and basically broke access to everything. Was this a community app or an iX-provided app?

We don’t allow changing permissions to this path via our UI / API (because it shouldn’t ever be changed). You will have to fix manually via shell. What is output of stat /mnt/BatNAS?

Thank you for the response, I believe the app was Nextcloud, available within TrueNAS.
Output below:
root@truenas[~]# stat /mnt/BatNAS
File: /mnt/BatNAS
Size: 9 Blocks: 27 IO Block: 512 directory
Device: 0,52 Inode: 34 Links: 9
Access: (0700/drwx------) Uid: ( 999/ netdata) Gid: ( 999/ docker)
Access: 2025-01-12 06:49:01.414982498 -0800
Modify: 2025-01-20 09:31:28.992289708 -0800
Change: 2025-01-20 11:38:57.580078312 -0800
Birth: 2025-01-12 06:49:01.414982498 -0800
root@truenas[~]#

First off, you should not ever mount /mnt/BatNAS as a hostpath for an app. There are various apps out there that make recursive permissions changes and will 100% break access to all your files if you do this.

chmod 755 /mnt/BatNAS followed by chown root:root /mnt/BatNAS to start. That will allow you to slowly recover.

Thank you for your help