Hello.
I’m a beginner who just installed TrueNAS SCALE.
I don’t understand anything about this OS.
I previously used a different NAS OS, but TrueNAS is far more complex.
As mentioned in the title, I want to separate folders for each user like \IP\username with SMB connections.
And I want to implement password authentication during SMB connection so that users cannot see folders other than their own.
I would appreciate if you could explain how to do this, starting from creating a pool.
What I do is create a dataset called home, then set up a SMB share to it with special permission of “use as home share”, then create your users and have the user setup create their home directory in the home dataset. Works great and locks the home directory to the user and locks it with there user id/password.
In the SMB share settings, “Use as Home Share” is grayed out and cannot be selected.
What should I do in this case?
You can use the SMB share preset for private datasets and shares. This automatically creates per-user datasets as users connect to the share and adjusts the share’s path to the dataset.
I proceeded with the steps of Pool creation → Dataset creation → SMB creation → User creation, but it didn’t work well.
When I connected to the SMB at \IP, there was no user authentication and I could access it normally, but all that was displayed was an empty home folder.
Did I make a mistake somewhere?
This might help Understanding Home Directories - #18 by Johnny_Fartpants
When creating your dataset you should select the SMB preset and not Generic.
I’ve made a video of the setup procedure. Where am I making a mistake?
It looks like you have the share already mapped in the video. I suggest you disconnect from the share and reconnect to update your permissions. Sometimes Windows even needs a restart.
Also what makes you think it didn’t work. The last part of the video is very fast so hard to see but it looks like you’ve mapped and can access the share. If working correctly you should have a new dataset created with the users name. Did that bit happen?
I don’t recommend setting up home folders in that way personally. There’s a reason we’re burying it within sharing options.
The username dataset has been created. However, I cannot log in to it. In the video, it shows that it’s possible to access NAS without any credentials.
Please share a screenshot of your dataset permissions.
Just to be safe, I’ll write once more what I want to achieve. I apologize for being a beginner.
- Disallow anonymous logins
- Create password-authenticated personal folders
- Prevent users from viewing other users’ personal folders
Im not sure you followed the above suggested post very well.
Start again with a new dataset, set to SMB and don’t change the permissions.
Okay, then should I set up a own dataset for each user?
Is that a better way?
No, this will auto create each user their own dataset when they access the share. You need only create one parent dataset called ‘Home’ for example.
Sorry getting confused about who I was talking to. This process that is being described works well as a one stop shop for users who essentially want a private SMB space with their own dataset. If thats what you desire then follow the process.