您的位置:首页 > 其它

RHEL4- SAMBA服务(三)samba服务默认主配置文件中文简译

2009-08-07 11:32 597 查看
RHEL4- SAMBA服务(三)samba服务默认主配置文件中文简译

以下是根据自己的经验理解,简单解释了常用samba配置选项,包括原文和中文解释,仅供大家参考,如有异议之处请在文章下的留言区留言指正。由于文件较多只写了部分,如查看全文请下载附件。
如想查看配置文件原文,参见:点击查看samba配置文件原文

# 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

#这是samba服务的配置文件。你需要读一读smb.conf(5)的手册页。Samba有大量的配置选项。(也许是太多了!)大部分的例子是不会显示在这里的。
#

# 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.

#注:无论你何时更改了这个配置文件,你都要运行“testparm”命令来测试一下,以避免你手工配置错误或者是基本的语法错误。
#

#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = MYGROUP
#
#选项‘workgroup=MYGROUP’是设置工作组,默认工作组名为MYGROUP,可以根据实际情况进行更改。
#

# server string is the equivalent of the NT Description field
server string = Samba Server
#
#选项‘server string = Samba Server’是用来设置主机信息,也就是可以在网上邻居看到的注视信息,例如‘samba服务器’。
#

# 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.
#
#选项‘hosts allow = 192.168.1. 192.168.2. 127.’是一个安全选项,可以限制链接到服务器的网络,后面的参数可以是网段也可以是具体的主机IP地址。默认是192.168.1网段和主机IP:192.168.2.127。
#

# 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
#
#如果你想自动的加载打印机列表不想单独设置可以使用‘ 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
; printing = cups
#
#选项‘printing = cups’指定打印机驱动类型,上面举例了几个常用打印机驱动类型,但是并不多,许多比较新的打印机都不被支持,配置上很麻烦。
#

。。。。。。。。。。。。。。。。。。

文章未完。。。欲查看全文请参见附件:点击下载附件
。。。。。。。。。。。。。。。。。。

——————————————————————————————————
特别声明:--
一、本文为原创,著作权及使用权为(作者笔名:闪电cto)本人所有。 ­
二、本文首发于51cto个人博客(http://xudeqiang.blog.51cto.com)。 ­
三、本文只供互联网上的读者分享,不供共享范畴,希知。 ­
四、未经许可严禁对本文作修改、节选、断章性质的处理。 ­
五、可转载,但必须注明原文章首发的出处网址,及文章作者,严禁复制。 ­
六、如若转摘用于杂志网络媒体新闻,必须通知作者得到允许后方可,需收稿费。­
七、作者联系信息:QQ:306718122 邮箱levinboy@foxmail.com
——————————————————————————————
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息