Skip to content

Instantly share code, notes, and snippets.

@prydom

prydom/smb.conf Secret

Created December 14, 2014 23:57
Show Gist options
  • Save prydom/5953225edc9c5e7d1230 to your computer and use it in GitHub Desktop.
Save prydom/5953225edc9c5e7d1230 to your computer and use it in GitHub Desktop.
My debug smb.conf
#======================= Global Settings =====================================
[global]
workgroup = WORKGROUP
server string = jxpryde-arch-think
netbios name = jxpryde-arch-think
# Disable Printing
printcap name = /dev/null
load printers = no
disable spoolss = yes
printing = bsd
log file = /var/log/samba/%m.log
max log size = 100000
security = user
dns proxy = no
create mask = 0664
directory mask = 0775
force create mode = 0664
force directory mode = 0775
#========== FOR DEBUG - REMOVE IN PRODUCTION =============
log level = 10
username map = /etc/samba/users.map
; force NTLMv2
ntlm auth = no
lanman auth = no
; force only Windows 7 and 8 and newer SAMBA compat
server max protocol = SMB3
server min protocol = SMB2
; reiterate defaults
smb encrypt = auto
server schannel = auto
; Force SAM auth (NO AD)
auth methods = sam
#========== END -- FOR DEBUG - REMOVE IN PRODUCTION -- END =============
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
[USB]
path = /media/USB
read only = no
valid users = jxpryde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment