|
楼主 |
发表于 2003-4-4 10:01:42
|
显示全部楼层
给大家一个示范的配置文件,其中中文共享支持的关键是三个charset项,这在MagicLinux的安装说明中就有提到的:
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = DSN
# server string is the equivalent of the NT Description field
server string = Samba Server
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = share
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
nt acl support = no
dns proxy = no
netbios name = Jss_Server
guest ok = no
############################################
display charset = GBK
unix charset = GBK
dos charset = 936
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
[公共文件夹]
comment =
writeable = no
guest ok = no
path = /home/公共文件夹/
admin users = xjb,wyq,gddsn
write list = xjb,wyq,gddsn |
|