Samba Config

Table of Contents

Quick samba config to share home directory only.

smb.config

[global]
workgroup = MYGROUP
server string = %m
server role = standalone
log file = /usr/local/samba/var/log.%m
max log size = 50
dns proxy = no

# --- Disable printer queue
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
# ---

[homes]
comment = Home Directories
browseable = yes
writable = yes
force create mode = 0600
force directory mode = 0700

lpqd should not start anymore.

Disable NetBIOS

Comment out nmbd related options in /etc/conf.d/samba (Alpine Linux):

# Add "winbindd" to daemon_list if you want start winbind from here as well
#daemon_list="smbd nmbd"
# Use "samba" alone for role based samba4 services (eg: ad-dc).
daemon_list="smbd"

smbd_options="-D"
#nmbd_options="-D"
#winbindd_options=""
#samba_options=""
John Siu
Minimize the Effort, Maximize the Effect!
comments powered by Disqus