快速业务通道

Linux全攻略--Samba服务器配置与管理(一)

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-05-15
onf.%m //在此行允许用户自己定义每台计算机的基本配置文件,%m代表NETBIOS正在连接的计算机名称.
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 //设置服务器和客户之间会话的socket选项,此项设置将优化传输速度.
; interfaces = 192.168.12.2/24 192.168.13.2/24 //如果有多网络界面在此列出
; remote browse sync = 192.168.3.25 192.168.5.255 // 本行和下一行是远程浏览设置
; remote announce = 192.168.1.255 192.168.2.44 ; local master = no
; os level = 33 ; domain master = yes
; preferred master = yes
; domain logons = yes
; logon script = %m.bat
; logon script = %U.bat
; logon path = \%LProfiles%U
; name resolve order = wins lmhosts bcast
; wins support = yes
; wins server = w.x.y.z //WINS客户端设置
; wins proxy = yes障碍
dns proxy = no //DNS PROXY设置,默认是不为客户做DNS查询
; preserve case = no
; short preserve case = no
; default case = lower
; case sensitive = no #============================ Share Definitions ==============================
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no
[homes] //用户访问自己目录的设置
comment = Home Directories //说明文件或目录类型
browseable = no //用户私人目录,不需要给别人浏览
writable = yes //用户写入自己目录的权限 # Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon] //域用户登录目录设置
; comment = Network Logon Service
; path = /home/netlogon
; guest ok = yes
; writable = no
; share modes = no
# Un-comment the following to provide a specific roving profile share
# the default is to use the user''s home directory
;[Profiles] //默认PROFILE设置
; path = /home/profiles
; browseable = no
; guest ok = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers] //打印机设置
comment = All Printers //说明要把全部打印机共享
path = /var/spool/samba //打印机池,用户自行创建目录
browseable = no //此地存放打印机的临时文件
# Set public = yes to allow user ''guest account'' to print
guest ok = no
writable = no
printable = yes //用户是否可以打印 # This one is useful for people to share files
;[tmp] //用户共享资源设置(可定义新的共享目录)
; comment = Temporary file space //说明
; path = /tmp //共享目录设置
; read only = no //是否只读或可写入
; public = yes //是否共享 # A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public] //用户资源共享设置
; comment = Public Stuff
; path = /home/samba
; public = yes
; read only = yes
; write list = @staff # Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred''s
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred''s Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes # A private directo

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号