Hello everybody,
I'm struggling with setting up home folders where every home "folder" actually is a dataset. I'm running freeNAS 9.10
Concrete it looks like this
Then I've created a CIFS share home and set the option Use as home share and unselect the option Browsable to Network Clients. If I access my freeNAS I see the folder user1, user2, ..., userm but if I try to access it I get an error message. The funny thing is if I create a usern and let the wizard create a FOLDER usern inside of the dataset /tank/home I can access the folder.
My smb4.conf looks like this
	
		
			
		
		
	
			
			I'm struggling with setting up home folders where every home "folder" actually is a dataset. I'm running freeNAS 9.10
Concrete it looks like this
- /tank/home/user1
 - /tank/home/user2
 - ...
 - /tank/home/userm
 
Then I've created a CIFS share home and set the option Use as home share and unselect the option Browsable to Network Clients. If I access my freeNAS I see the folder user1, user2, ..., userm but if I try to access it I get an error message. The funny thing is if I create a usern and let the wizard create a FOLDER usern inside of the dataset /tank/home I can access the folder.
My smb4.conf looks like this
Code:
[global]
  server max protocol = SMB3_11
  encrypt passwords = yes
  dns proxy = no
  strict locking = no
  oplocks = yes
  deadtime = 15
  max log size = 51200
  max open files = 940106
  logging = file
  load printers = no
  printing = bsd
  printcap name = /dev/null
  disable spoolss = yes
  getwd cache = yes
  guest account = nobody
  map to guest = Bad User
  obey pam restrictions = yes
  directory name cache size = 0
  kernel change notify = no
  panic action = /usr/local/libexec/samba/samba-backtrace
  nsupdate command = /usr/local/bin/samba-nsupdate -g
  server string = FreeNAS Server
  ea support = yes
  store dos attributes = yes
  lm announce = yes
  hostname lookups = yes
  time server = yes
  acl allow execute always = true
  dos filemode = yes
  multicast dns register = yes
  domain logons = no
  local master = yes
  idmap config *: backend = tdb
  idmap config *: range = 90000001-100000000
  server role = standalone
  netbios name = FREENAS
  workgroup = WORKGROUP
  security = user
  pid directory = /var/run/samba
  create mask = 0666
  directory mask = 0777
  client ntlmv2 auth = yes
  dos charset = CP437
  unix charset = UTF-8
  log level = 10
  shadow:snapdirseverywhere = yes
[homes]
    valid users = %U
    path = /tank/home/%U
    comment = Home Directories
    printable = no
    veto files = /.snapshot/.windows/.mac/.zfs/
    writeable = yes
    browseable = no
    vfs objects = zfs_space zfsacl aio_pthread streams_xattr
    hide dot files = yes
    guest ok = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = true
    zfsacl:acesort = dontcare