Linux 版 (精华区)
发信人: tcpip (高级草包), 信区: Linux
标 题: testparm (1)
发信站: 紫 丁 香 (Fri May 5 20:17:36 2000) WWW-POST
------------------------------------------------------------------------------
--
testparm (1)
Samba
23 Oct 1998
NAME
名称
testparm - check an smb.conf configuration file for internal correctness
testparm - 检查smb.conf配置文件的内部正确性
SYNOPSIS
语法
testparm [-s] [-h] [-L servername] [configfilename] [hostname hostIP]
DESCRIPTION
描述
This program is part of the Samba suite.
此程序是samba套件的一部分。
testparm is a very simple test program to check an smbd configuration file
for internal correctness. If this program reports no problems, you can use
the configuration file with confidence that smbd will successfully load the
configuration file.
testparm是个非常简单的程序,用于检查smbd配置文件的内部正确性。如果程序报告没有
什么问题,那么你可以放心地使用这个配置文件,并且smbd也会非常顺利地装入它。
Note that this is NOT a guarantee that the services specified in the
configuration file will be available or will operate as expected.
注意,这并不保证配置文件中指定的服务可以获得或者如你所愿地那样进行操作。
If the optional host name and host IP address are specified on the command
line, this test program will run through the service entries reporting
whether the specified host has access to each service.
如果在它的命令上指定可选的主机名和主机IP地址的话,测试程序将通过服务接口运行并
报告是否指定的主机可以访问每个服务。
If testparm finds an error in the smb.conf file it returns an exit code of 1
to the calling program, else it returns an exit code of 0. This allows shell
scripts to test the output from testparm.
如果testparm在smb.conf文件中找到一个错误的话,它会向调用程序返回退出代码1,否
则返回退出代码0。这样shell脚本可以测试testparm的输入。
OPTIONS
选项
-s
Without this option, testparm will prompt for a carriage return after
printing the service names and before dumping the service definitions.
如果不带这个参数,testparm将提示在列出服务名和服务定义项之间打一个回车。
-h
Print usage message
列出用法信息
-L servername
Sets the value of the %L macro to servername. This is useful for testing
include files specified with the %L macro.
对服务项名字设定%L这样的宏值。对于测试包含这样的宏值的文件非常有用。
configfilename
This is the name of the configuration file to check. If this parameter is not
present then the default smb.conf file will be checked.
指定要检查的配置文件名。如果不指定的话,程序对默认的smb.conf文件进行检查。
hostname
If this parameter and the following are specified, then testparm will examine
the "hosts allow" and "hosts deny" parameters in the smb.conf file to
determine if the hostname with this IP address would be allowed access to the
smbd server. If this parameter is supplied, the hostIP parameter must also be
supplied.
如果命令行带有这个参数时,测试程序将检查smb.conf文件中的“hosts allow”和“
hosts deny”参数用以测试这些IP地址对应的主机名是否可以访问smbd服务器。如果用这
样的参数时,hostIP参数也必须一并使用。
hostIP
This is the IP address of the host specified in the previous parameter. This
address must be supplied if the hostname parameter is supplied.
这个参数用于指定前面给出的主机名相对应的IP地址。如上说述,主机名参数和这个地址
必须一并使用。
FILES
相关文件
smb.conf. This is usually the name of the configuration file used by smbd.
smb.conf,通常这是smbd使用的配置文件名。
DIAGNOSTICS
诊断
The program will issue a message saying whether the configuration file loaded
OK or not. This message may be preceded by errors and warnings if the file
did not load. If the file was loaded OK, the program then dumps all known
service details to stdout.
程序运行的结果将给出装入的配置文件是否正确的信息。如果文件没有被装入时可能显示
的是错误和警告信息。反之,装入文件正确的话,程序会在标准输出上列出所有可知的服
务细节。
VERSION
版本
This man page is correct for version 2.0 of the Samba suite.
此手册页是针对samba套件版本2.0的。
SEE ALSO
参见
smb.conf (5), smbd (8)
AUTHOR
作者
The original Samba software and related utilities were created by Andrew
Tridgell samba-bugs@samba.org. Samba is now developed by the Samba Team as an
Open Source project similar to the way the Linux kernel is developed.
samba软件和相关工具最初由Andrew Tridgell samba-bugs@samba.org创建。samba现在由
开发组作为类似Linux内核开发采用的开放源代码计划方式来发展。
The original Samba man pages were written by Karl Auer. The man page sources
were converted to YODL format (another excellent piece of Open Source
software, available at ftp://ftp.icce.rug.nl/pub/unix/) and updated for the
Samba2.0 release by Jeremy Allison. samba-bugs@samba.org.
samba手册页最初由Karl Auer撰写。它的源码已被转换成YODL(一种极好的开放源代码软
件,可以在ftp://ftp.icce.rug.nl/pub/unix/处获得)格式并已由Jeremy Allison更新到
samba2.0版本。
See samba (7) to find out how to get a full list of contributors and details
on how to submit bug reports, comments etc.
请参见samba (7)查找如何获得一份完整的维护者列表以及如何提交错误报告及注解等等
。
--
"这一千多年没写诗了?"
"写了, 不过只写了两句."
"千年得两句, 一定是万古丽句了. 念来听听."
"好吧, 我现丑了" 太白星清了清嗓子, 浑厚的男中音在天庭响起:
大海啊, 都是水;
骏马啊, 四条腿;
※ 来源:·紫 丁 香 bbs.hit.edu.cn·[FROM: freesrc.hit.edu]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:7.739毫秒