#======================= Global Settings =======================
[global]
workgroup = workgriop
NetBIOS Name = xyc-server
server string = XYC Samba Server
unix charset = gb2312
dos charset=cp936
security = user
;hosts allow = 192.168.2.127
guest account = smbprint
map to guest = Bad User
map to guest = Bad Password
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes
# lpr(ng) printing. You may wish to override the location of the
# printcap file
printing = bsd
printcap name = /etc/printcap
# CUPS printing. See also the cupsaddsmb( manpage in the
# cupsys-client package.
printing = cups
printcap name = cups
# When using [print$], root is implicitly a 'printer admin', but you can
# also give this right to other users to add drivers and set printer
# properties
printer admin = @ntadmin
wins support = no
map to guest = Bad User
restrict anonymous = no
guest ok = yes
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto
# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
create mask = 0700
# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 0700
# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
; comment = Network Logon Service
; path = /home/netlogon
; guest ok = yes
; writable = no
; share modes = no
[homes]
comment = Home Directories
browseable = no
writable = yes
readonly = no
force create mode = 0755
create mode = 0644
force directory mode = 0755
directory mode = 755
[printers]
comment = All Printers
browseable = no
path = /tmp
printable = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[public]
msdfs proxy = no
read only = no
comment = public
path = /home/public
writable = yes
[netlogon]
comment = Logon Services in the Network
path = /home/netlogon
guest ok = yes
writable = no
write list = dachengi root zhangyang yanyan
locking = no
public = no
browseable = yes
share modes = no
[group]
comment = Directory of Group
path = /home/%u/group
writable = yes
readonly = no
force create mode = 0770
create mode = 0770
force directory mode = 0770
directory mode = 0770
[cdrom]
comment = CD-ROM
path = /mnt/cdrom
public = yes
writable = no
[tmp]
comment = Tempora Files
path = /tmp
readonly = no
public = yes
writable = yes
force create mode = 0777
create mode = 0777
force directory mode = 0777
directory mode = 0777
[drivers]
msdfs proxy = no
read only = no
comment = drivers
path = /home/drivers