Created
May 30, 2018 07:54
-
-
Save ethnchao/c773fab2bdec1bdb36e89df4195e9df3 to your computer and use it in GitHub Desktop.
Linux Samba Configurations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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