67 lines
2.1 KiB
Cheetah
67 lines
2.1 KiB
Cheetah
[global]
|
|
# Allow connections with hostnames that can be resolved from hostname.local.{{ .user.domain }}
|
|
allow hosts = .local.{{ .user.domain }}
|
|
hostname lookups = yes
|
|
# Allows users without accounts to log in and be assigned to the guest account
|
|
map to guest = bad user
|
|
netbios name = {{ .host.samba.netbiosName }}
|
|
obey pam restrictions = yes
|
|
proxy = no
|
|
# Allow using DNS to specify allowed hosts
|
|
# Source: https://serverfault.com/questions/702455/samba-hosts-allow-example-com
|
|
dns proxy = yes
|
|
security = user
|
|
server role = standalone server
|
|
server string = Samba on %L
|
|
workgroup = {{ .host.samba.workgroup }}
|
|
# Printing - Uncomment these lines to enable Samba printer sharing with CUPSD
|
|
# Source: https://wiki.archlinux.org/index.php/CUPS/Printer_sharing
|
|
# load printers = yes
|
|
# printing = CUPS
|
|
# Symlinks - Uncomment the following two options to enable symlinking (including symlinks outside of the shared folder)
|
|
# This feature is disabled by default due to security concerns (i.e. people can create symlinks on the shares and access system files if the share is writable)
|
|
# unix extension = no
|
|
# wide links = yes
|
|
|
|
[Private]
|
|
browsable = yes
|
|
comment = Authenticated share with read/write capabilities (backed up to S3)
|
|
follow symlinks = no
|
|
guest only = no
|
|
path = /mnt/samba-private
|
|
public = no
|
|
valid users = @sambausers
|
|
writable = true
|
|
|
|
[Public]
|
|
browsable = yes
|
|
comment = Public folder provided for file sharing on the LAN (backed up to S3)
|
|
follow symlinks = no
|
|
guest only = yes
|
|
path = /mnt/samba-public
|
|
public = yes
|
|
writable = yes
|
|
|
|
# [printers]
|
|
# browsable = yes
|
|
# comment = Printers
|
|
# path = /var/spool/samba/
|
|
# printable = yes
|
|
# public = yes
|
|
# writable = no
|
|
|
|
# [print]
|
|
# browsable = yes
|
|
# comment = Printer drivers
|
|
# path = /var/lib/samba/printers
|
|
# public = yes
|
|
# writable = no
|
|
|
|
# [HPOfficeJetPro]
|
|
# comment = HP OfficeJet Pro printer
|
|
# path = /var/spool/samba/
|
|
# printable = yes
|
|
# # Source: https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server
|
|
# printer name = HP OfficeJet Pro 6978
|
|
# public = yes
|
|
# writable = no
|