Well, it looks like I've solved the question of whether you can auto-create the 
folders.  There's a nice little samba script that you can add to the share to 
do it for you:

>From http://www.edplese.com/samba-with-zfs.html

Samba's root preexec share parameter can really come in handy when setting up 
user home directories. Here we tell it to automatically create a ZFS filesystem 
for every new user, set the owner, and set the quota to 1 GB. This can easily 
be expanded to other filesystem properties as well.

Create a file /usr/bin/createhome.sh:

#!/usr/bin/tcsh
if ( ! -e /tank/home/$1 ) then
  zfs create tank/home/$1
  chown $1 tank/home/$1
  zfs set quota=1G tank/home/$1
endif

Modify smb.conf and modify [homes] to resemble:

[homes] 
  comment = User Home Directories 
  browseable = no 
  writable = yes
  root preexec = /usr/bin/createhome.sh '%U'
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to