Last active
March 12, 2021 16:24
-
-
Save raspi/9986175 to your computer and use it in GitHub Desktop.
FreeBSD ZFS Samba 4 config with recycle and read/write optimizations example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ZFS pool @ /storage | |
| [global] | |
| workgroup = LAN | |
| server string = Samba Server | |
| security = user | |
| hosts allow = 192.168. 127. | |
| load printers = no | |
| log file = /var/log/samba/log.%m | |
| max log size = 50 | |
| passdb backend = tdbsam | |
| socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536 | |
| interfaces = 192.168.0.0/16 | |
| dns proxy = no | |
| [homes] | |
| comment = Home Directories | |
| browseable = no | |
| writable = no | |
| [printers] | |
| comment = All Printers | |
| path = /var/spool/samba | |
| browseable = no | |
| guest ok = no | |
| writable = no | |
| printable = no | |
| # ZFS pool | |
| [storage] | |
| path = /storage/Users/%U | |
| public = no | |
| writable = yes | |
| unix extensions = no | |
| vfs objects = zfsacl | |
| nfs4:mode = special | |
| nfs4:acedup = merge | |
| nfs4:chown = yes | |
| vfs object = recycle | |
| recycle:repository = /storage/recyclebin/%U | |
| recycle:keeptree = Yes | |
| recycle:touch = Yes | |
| recycle:versions = Yes | |
| nt acl support = yes | |
| inherit acls = no | |
| map acl inherit = yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment