Skip to content

Instantly share code, notes, and snippets.

@ethnchao
Created May 30, 2018 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethnchao/c773fab2bdec1bdb36e89df4195e9df3 to your computer and use it in GitHub Desktop.
Save ethnchao/c773fab2bdec1bdb36e89df4195e9df3 to your computer and use it in GitHub Desktop.
Linux Samba Configurations
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
dos charset = CP936
unix charset = UTF-8
directory mask = 0755
force directory mode = 0755
create mask = 0755
force create mode = 0755
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = root
create mask = 0664
directory mask = 0775
[public]
comment = Public Stuff
path = /home/admin/share
public = yes
writable = yes
printable = no
write list = +staff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment