I recently moved my network storage from my Slug (NSLU2) running Debian to Freenas. It is great for having “a” samba share where everyone could store any data. But I needed a private share where only the logged in user has access to the folder. So I decided I needed the homedirectories of the users available through samba. Here’s what I’ve done:
Log in via SSH and create a base homedirectory:
mkdir /mnt/yourmountpoint/home
Under Access -> Users and Groups create a group for the user you are about to create, a name and a description will do. Then create the user and have the primary group the one you just created, set the following for Home directory: /mnt/yourmountpoint/home/username the directory ‘username’ will be created for you.
Then go to Services -> CIFS/SMB and add the following to the Auxilary parameters:
[homes]
browseable = no
comment = Home Directories
create mask = 0770
directory mask = 0770
read only = no
valid users = %S
Save en Restart the service and you are good to go, when you log in through Windows Explorer you will see only the homedirectory of the logged in user (and of course the other shares)
Thank you very much!!!!!
This is the first sollution that actually realy works! Thanks a lot!