Had some issues with a user permission on a folder on root. I'm very new to this and Applied Permissions recursively without thinking of the consequences.
Now, I can no longer start the Jail shell (This is a nextcloud jail) through TrueNAS. I can still access the smb shares and all files with the user but TrueNas (I'm assuming root) can no longer login?
I'm not sure if I have the correct verbage for a search as I'm seeing issues with people adjusting plugins and matching IDs form TrueNAS to the internal Jail users but I can't even get into the shell.
To get things up and running, i created another jail (Nextcloud) to do what I need to do but the settings and some information on the broken permission jail would be ideal to have.
I did some comparison of the broken jail and the working jail to see if I can fix the error and possibly get nextcloudweb jail up and running again.
I have limited knowledge of FreeBSD / Linux so I have been searching for commands to help me understand. So looking at Jails saw that they were different so I search around and found this command to change permissions:
setfacl -m owner@:rwxpaARWcCos:allow /mnt/....
setfacl -m group@:rxaRcs:allow /mnt/.....
setfacl -m everyone@:rxaRcs:allow /mnt/....
I did the adjustments to match the working jail but that didnt' seem to work after restarting the jail. (I tried enabling all permissions for owner/group/everyone)
Looking deeper into each folder, I noticed the root folder for the working jail and broken one are very different:
I'm not sure of a command that will change these permissions or if there command to change all files within the folder directory.
Even if I do find a way, not sure if that would fix the issue (worth a shot though)
Also reading though the posts, I saw alot of making sure your UID/GID should match with the internal Jail IDs. Just to make sure I checked the ID of the truenas and then used the jexec (Jail#) tcsh and checked the ID of the jail.
They seem to match, so I'm assuming that is not the problem.
I have no snapshot of the jail before the changes (yeah I'm new at this).
Any guidance/thoughts on how to recover from this permission change is greatly welcomed. I have limited knowledge (only to what I find on searches), so telling me to CHROOM something without that exact reference of the correct syntax is problematic (I see tutorials on docker/CentOS but the command slightly different and I get errors).
thank you in advance for any help.
P.S.
If it is just not salvageable, is there a way to transfer the files/configurations of the NextCloud to a new Jail?