install.fairie/home/dot_config/samba/config.tmpl
Brian Zalewski 0932f983b8 Update 15 files
- /home/.chezmoitemplates/secrets/key-sendgrid-api-key
- /home/.chezmoidata.yaml
- /home/dot_config/postfix/private_sasl_passwd.tmpl
- /home/dot_config/postfix/main.cf
- /home/dot_config/slack-term/config.tmpl
- /home/dot_config/tabby/config.yaml.tmpl
- /home/dot_config/warp/private_mdm.xml.tmpl
- /home/dot_config/samba/config.tmpl
- /home/dot_config/npm/npmrc.tmpl
- /home/dot_config/ngrok/ngrok.yml.tmpl
- /home/dot_config/rclone/merge_private_rclone.conf.tmpl
- /home/.chezmoiscripts/universal/run_onchange_after_05-postfix.sh.tmpl
- /home/.chezmoitemplates/secrets/SENDGRID_API_KEY
- /docs/TODO.md
- /software.yml
2023-04-19 12:13:42 +00:00

69 lines
2.2 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 = yes
guest only = no
path = /mnt/Network Share (Private)
public = no
unix extension = yes
valid users = @sambausers
wide links = yes
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/Network Share (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