Help with home folder scenario

NJBC

Cadet
Joined
Mar 18, 2020
Messages
4
Hi
Please help
I have got the following setup for my HOME Directory

/mnt/MyPool/HomeUsers/Parent
/mnt/MyPool/HomeUsers/Child1
/mnt/MyPool/HomeUsers/Child2
/mnt/MyPool/HomeUsers/Child3

I can log in from my windows machine and have access to my own folder.
For example, if I log in as Parent, i have access to /mnt/MyPool/HomeUsers/Parent
If I log in as Child1, I have access to /mnt/MyPool/HomeUsers/Child1

Question: I want to log in as Parent from a Windows machine and have access to all the folders above using Windows File Explorer. Can this be done, and how?

Thanks
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Hi
Please help
I have got the following setup for my HOME Directory

/mnt/MyPool/HomeUsers/Parent
/mnt/MyPool/HomeUsers/Child1
/mnt/MyPool/HomeUsers/Child2
/mnt/MyPool/HomeUsers/Child3

I can log in from my windows machine and have access to my own folder.
For example, if I log in as Parent, i have access to /mnt/MyPool/HomeUsers/Parent
If I log in as Child1, I have access to /mnt/MyPool/HomeUsers/Child1

Question: I want to log in as Parent from a Windows machine and have access to all the folders above using Windows File Explorer. Can this be done, and how?

Thanks
Create a second share with the path /mnt/MyPool/HomeUsers.
 

NJBC

Cadet
Joined
Mar 18, 2020
Messages
4
Create a second share with the path /mnt/MyPool/HomeUsers.
Thanks for the quick reply Anodos.
Your suggestion does not work. When I click a second share with the same path, both the shares inherit the same User and Group settings. This is, i believe, on account of the 2 shares referring to the same path?

Any other settings i need to tweak? please?

Thanks
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Thanks for the quick reply Anodos.
Your suggestion does not work. When I click a second share with the same path, both the shares inherit the same User and Group settings. This is, i believe, on account of the 2 shares referring to the same path?

Any other settings i need to tweak? please?

Thanks
No. It works. You just need to be careful to adjust permissions so that your admin group has access to /mnt/MyPool/HomeUsers. In 11.3 you can do this simply by creating an SMB admins group, selecting it in the dropdown for administrators group in Services->SMB. Once you do this, edit the ACL on HomeUsers and select the "HOME" template.
 

NJBC

Cadet
Joined
Mar 18, 2020
Messages
4
No. It works. You just need to be careful to adjust permissions so that your admin group has access to /mnt/MyPool/HomeUsers. In 11.3 you can do this simply by creating an SMB admins group, selecting it in the dropdown for administrators group in Services->SMB. Once you do this, edit the ACL on HomeUsers and select the "HOME" template.
sorry to be a pain mate. i did as you suggested, but now Parent can see ALL folders and Child1 can also see all folders. What am i doing wrong? I have stopped and restarted the SMB service as well, but no luck
 

NJBC

Cadet
Joined
Mar 18, 2020
Messages
4
Post output of following:
getfacl /mnt/MyPool/HomeUsers
getfacl /mnt/MyPool/HomeUsers/Parent
getfacl /mnt/MyPool/HomeUsers/Child1
Anodos, you bloody genius :) I reinstalled FreeNAS and did as you suggested ... worked a treat. I created the SMB admins group ... wasn't even aware that that piece of functionality existed
I was pulling my hair out for almost 3 days prior to your assistance!. THANKS!!
:)
 
Top