samba
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-16
# This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # For a step to step guide . installing, configuring and using samba, # read the Samba-HOWTO-Collection. This may be obtained from: # [url]http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf[/url] # # Many wo***ng examples of smb.conf files can be found in the # Samba-Guide which is generated daily and can be downloaded from: # [url]http://www.samba.org/samba/docs/Samba-Guide.pdf[/url] # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command "testparm" # to check that you have not made any basic syntactic errors. # #======================= Global Settings ===================================== [global] # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH workgroup = student # server string is the equivalent of the NT De.ion field server string = Samba Server # Security mode. Defines in which mode Samba will operate. Possible # values are share, user, server, domain and ads. Most people will want # user level security. See the Samba-HOWTO-Collection for details. security = share # This option is important for security. It allows you to restrict # connections to machines which are . your local network. The # following example restricts access to two C class networks and # the "loopback" interface. For more examples of the syntax see # the smb.conf man page hosts allow = 192.168.2.0 # If you want to automatically load your printer list rather # than setting them up individually then you''ll need this load printers = yes # you may wish to override the location of the printcap file ; printcap name = /etc/printcap # . SystemV system setting printcap name to lpstat should allow # you to automatically obtain a printer list from the SystemV spool # system ; printcap name = lpstat # It should not be necessary to specify the print system type unless # it is non-standard. Currently supported print systems include: # bsd, cups, sysv, plp, lprng, aix, hpux, qnx ; printing = cups # This option tells cups that the data has already been rasterized cups options = raw # Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user "nobody" is used guest account = xiaozhe # this tells Samba to use a separate log file for each machine # that connects log file = /var/log/samba/%m.log # Put a capping . the size of the log files (in Kb). max log size = 50 # Use password server option .ly with security = server # The argument list may include: # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name] # or to auto-locate the domain controller/s # |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于samba的所有评论