Skip to content

Instantly share code, notes, and snippets.

@pwood
Last active August 29, 2015 14:03
Show Gist options
  • Save pwood/94b7aa7c6a54b1816627 to your computer and use it in GitHub Desktop.
Save pwood/94b7aa7c6a54b1816627 to your computer and use it in GitHub Desktop.
[global]
netbios name = neon
workgroup = ALASTRIA
security = ADS
realm = ALASTRIA.LAN
encrypt passwords = yes
local master = no
domain master = no
log level = 2
log file = /var/log/samba4/log.%m
idmap config *:backend = tdb
idmap config *:range = 70001-80000
idmap config ALASTRIA:backend = ad
idmap config ALASTRIA:schema_mode = rfc2307
idmap config ALASTRIA:range = 20001-30000
winbind nss info = rfc2307
winbind trusted domains only = no
winbind use default domain = yes
winbind enum users = yes
winbind enum groups = yes
template homedir = /data/store/%U/unix
template shell = /usr/local/bin/bash
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
hide special files = yes
ea support = no
vfs objects = shadow_copy2, zfsacl, streams_xattr
nfs4:acedup = merge
nfs4:chown = yes
nfs4:mode = special
inherit acls = no
inherit permissions = no
acl map full control = no
dos filemode = no
store dos attributes = yes
map archive = no
map hidden = no
map system = no
map readonly = no
map acl inherit = yes
shadow:format = daily-%Y-%m-%d
shadow:sort = desc
shadow:snapdir = .zfs/snapshot
shadow:localtime = yes
follow symlinks = yes
wide links = yes
unix extensions = no
read only = no
socket options = TCP_NODELAY SO_RCVBUF=131072 IPTOS_LOWDELAY
[unix]
comment = Unix Home Directory
writable = yes
path = /data/store/%U/unix
[photos]
comment = Photos
writable = yes
path = /data/store/%U/photos
[documents]
comment = Document Store
writable = yes
path = /data/store/%U/documents
[media]
comment = Media Archive
writable = yes
path = /data/media
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment