快速业务通道

LINUX之SAMBA学习之道

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-05-05

Samba详解 1.smb.conf说明
---------------------------------------------------------------------
# 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
#
# 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
workgroup = workgroup 设置工作组名称,该名称会出现在Windows的网上 邻居和Linux的网络服务器
netbios name= aaa 设置netbios bios名称
# server string is the equivalent of the NT Description field
server string = Samba Server 服务器说明 # This option is important for security. It allows you to restrict
# connections to machines which are on 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.1. 192.168.2. 127. 它严格限制了可访问Samba Server的IP范围,默认是允许所有,去掉;就可启用 # if you want to automatically load your printer list rather
# than setting them up individually then you''ll need this
printcap name = /etc/printcap 打印机配置文件路径
load printers = yes 是否将打印机共享 # It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
printing = cups 打印机的类型 # Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
# guest account =pcguest 如果想让用户“pcguest”匿名访问去掉#,并确保在/etc/passwd中有此用户.
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log log会在此目录中为每个登录samba的用户建立不同的日志文件 # Put a capping on the size of the log files (in Kb).
max log size = 0 定义log文件的大小 # Security mode. Most people will want user level security. See
# security_level.txt for details.
security = share 安全级别,分为4种:share,user,server,domain
# Use password server option only 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
# password server = *
; password server = <NT-Server-Name> # Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8 密码

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站: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号