[global]
netbios name = server
#socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
map untrusted to domain = Yes
security = user
encrypt passwords = true
guest account = workstation
map to guest = Bad Password
log level = 3
name resolve order = bcast lmhosts host wins
domain master = no
local master = yes
preferred master = yes
#server min protocol = SMB2
#server max protocol = SMB3
ntlm auth = yes
workgroup = WORKGROUP
dns proxy = no
interfaces = 192.168.1.5
bind interfaces only = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
include = /etc/samba/smb.conf.client-%I
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[data]
public = yes
path = /data/shares/data
guest ok = yes
writable = yes
hide unreadable = yes
create mask = 0664
directory mask = 0775
force directory mode = 2775
force create mode = 0664
read only = no
vfs objects = acl_xattr
map acl inherit = yes
store dos attributes = yes
vfs objects = full_audit
full_audit:prefix = %u|%I|%m|%S
full_audit:success = mkdir rename rmdir pwrite write unlink open close
full_audit:failure = mkdir rename rmdir pwrite write unlink open close
full_audit:facility = local7
full_audit:priority = warning
[applications]
public = yes
path = /data/shares/applications
guest ok = yes
browsable = yes
writable = no
hide unreadable = yes
create mask = 0664
directory mask = 0755
vfs objects = acl_xattr
map acl inherit = yes
store dos attributes = yes
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}