Permission issues moving from FreeNAS 9.3 to TrueNAS 22.12.3.3

N4N027

Cadet
Joined
Jul 18, 2023
Messages
9
Hi,

I'm having some permission troubles with the folders on my disks, and I could use some help sorting this out.

Here's what happened: I was using FreeNAS 9.3 on my NAS, and suddenly the boot pool got messed up. So, I decided to do a fresh install of FreeNAS 9.3, but then I couldn't find my drives or volumes. I asked for help on the community Discord, and they suggested I try TrueNAS 22 SCALE. Guess what? It worked, and I found my drives again!

But here's the thing - I had set up Unix permissions on FreeNAS 9.3, and now I can't access some of my files or folders because of it. Is there a way to get rid of those old FreeNAS permissions and set up new ones using TrueNAS SCALE, without losing any of my data?

Any advice you can give me on this would be super helpful. Thanks a bunch!

TrueNAS SCALE Version: 22.12.3.3
FreeNAS Version: 9.3 - STABLE
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
Hi,

I'm having some permission troubles with the folders on my disks, and I could use some help sorting this out.

Here's what happened: I was using FreeNAS 9.3 on my NAS, and suddenly the boot pool got messed up. So, I decided to do a fresh install of FreeNAS 9.3, but then I couldn't find my drives or volumes. I asked for help on the community Discord, and they suggested I try TrueNAS 22 SCALE. Guess what? It worked, and I found my drives again!

But here's the thing - I had set up Unix permissions on FreeNAS 9.3, and now I can't access some of my files or folders because of it. Is there a way to get rid of those old FreeNAS permissions and set up new ones using TrueNAS SCALE, without losing any of my data?

Any advice you can give me on this would be super helpful. Thanks a bunch!

TrueNAS SCALE Version: 22.12.3.3
FreeNAS Version: 9.3 - STABLE

I don't know the answer, but its an update path that has NEVER been tested.

If there was a choice... I would have recommended 12.0-U8.1 then 13.0-U5 and after that SCALE.

Let's see if any gurus here know how to repair this situation. You might also try the discord channel.
 
Joined
Jul 3, 2015
Messages
926
How are you sharing the data via SMB?

Can you show a screenshot of one of your dataset permissions?

Are you using local users or is it attached to a directory service like AD or LDAP?
 

LarsR

Guru
Joined
Oct 23, 2020
Messages
719
My initial guess is that you're using root as user and the root Dataset to connect to you shares which was possible until early truenas 12 but was then switched due to security reasons. It's no longer possible to share out the root Dataset and use root as user to connect to shares.
If my guess is correct create a Child Dataset, copy your Data from the root Dataset to the Child Dataset, create new user to connect to your shares and edit the permissions of the child Dataset recursively so that your new user has permissions to access the Data.
 

N4N027

Cadet
Joined
Jul 18, 2023
Messages
9
I don't know the answer, but its an update path that has NEVER been tested.

If there was a choice... I would have recommended 12.0-U8.1 then 13.0-U5 and after that SCALE.

Let's see if any gurus here know how to repair this situation. You might also try the discord channel.
Hi MorganL,

Thanks for your response.

I was recommended on the discord to go straight to 13.0 and so I did but that was for a different issue i was having.
No response on discord chat with regards to this issue though :/
 

N4N027

Cadet
Joined
Jul 18, 2023
Messages
9
How are you sharing the data via SMB?

Can you show a screenshot of one of your dataset permissions?

Are you using local users or is it attached to a directory service like AD or LDAP?

Hi Johnny,

Thanks for your response.

Im using the SMB share it like this:
1692819524541.png


Not running AD or LDAP.
 

N4N027

Cadet
Joined
Jul 18, 2023
Messages
9
My initial guess is that you're using root as user and the root Dataset to connect to you shares which was possible until early truenas 12 but was then switched due to security reasons. It's no longer possible to share out the root Dataset and use root as user to connect to shares.
If my guess is correct create a Child Dataset, copy your Data from the root Dataset to the Child Dataset, create new user to connect to your shares and edit the permissions of the child Dataset recursively so that your new user has permissions to access the Data.

Hi LarS,

Thanks for your response.

Is there a way to see if that is what is happening with the datasets?

Will creating a new dataset not cause any data loss? :)
 

LarsR

Guru
Joined
Oct 23, 2020
Messages
719
No creating a new Dataset won't cause data loss. in very simplistic terms a Dataset is like a folder. When you create a new Dataset it's empty.
Judging by the screenshot you posted above you have shared out the Root Dataset. If you would have shared out a child Dataset it would look like this:
/mnt/azul/Childdataset

What i would try is creating a new Dataset use an ssh connection to copy the data from the root dataset to the new child dataset. Create a new user and then edit the permissions of the child Dataset so that your new user has the correct permissions and then remap your network shares with the new user.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Permissions were massively revamped around 9.10ish, so if you're on 9.3 it's best to start over. If your needs are simple, setting proper permissions shouldn't take long. If your needs are tricky, I'm sure the automagic migrations will manage to break something over at least three major jumps (depending on how you count).
 

N4N027

Cadet
Joined
Jul 18, 2023
Messages
9
No creating a new Dataset won't cause data loss. in very simplistic terms a Dataset is like a folder. When you create a new Dataset it's empty.
Judging by the screenshot you posted above you have shared out the Root Dataset. If you would have shared out a child Dataset it would look like this:
/mnt/azul/Childdataset

What i would try is creating a new Dataset use an ssh connection to copy the data from the root dataset to the new child dataset. Create a new user and then edit the permissions of the child Dataset so that your new user has the correct permissions and then remap your network shares with the new user.
If I do this solution would I not need more space because it is about 3.5tb of data on 6tb total space?
 

N4N027

Cadet
Joined
Jul 18, 2023
Messages
9
Permissions were massively revamped around 9.10ish, so if you're on 9.3 it's best to start over. If your needs are simple, setting proper permissions shouldn't take long. If your needs are tricky, I'm sure the automagic migrations will manage to break something over at least three major jumps (depending on how you count).
Thank you for your response Eric :)

Its simple permissions. Read/Write pretty much. My NAS is basically used as a backup server to some degree.
Such as important files, videos and pictures.
 
Top