nmbd - NetBIOS名字服务器
作者:Wing(2001-04-02 16:04:08) 〖回复〗〖打包〗〖转发〗

nmbd - NetBIOS name server to provide NetBIOS over IP naming services to
clients

nmbd - 向客户端提供构造在IP之上的NetBIOS名字服务的NetBIOS名字服务器

SYNOPSIS

语法

nmbd [-D] [-a] [-o] [-h] [-V] [-H lmhosts file] [-d debuglevel] [-l log file
basename] [-n primary NetBIOS name] [-p port number] [-s configuration file]
[-i NetBIOS scope]

DESCRIPTION

描述

This program is part of the Samba suite.

此程序是samba套件的一部分。

nmbd is a server that understands and can reply to NetBIOS over IP name
service requests, like those produced by SMBD/CIFS clients such as Windows
95/98, Windows NT and LanManager clients. It also participates in the
browsing protocols which make up the Windows "Network Neighborhood" view.

nmbd是一个回应构造于IP之上的NetBIOS名字服务请求的服务器,这些请求由SMBD/CIFS客
户(如Windows 95/98、NT和LanManager客户)产生。当然它也参与构造Windows的"网络邻
居”查看的浏览协议。

SMB/CIFS clients, when they start up, may wish to locate an SMB/CIFS server.
That is, they wish to know what IP number a specified host is using.

当SMB/CIFS客户机启动时,会试图查找一个SMB/CIFS服务器。说得更精确些就是它们要知
道正在使用的主机对应的IP地址。

Amongst other services, nmbd will listen for such requests, and if its own
NetBIOS name is specified it will respond with the IP number of the host it
is running on. Its "own NetBIOS name" is by default the primary DNS name of
the host it is running on, but this can be overridden with the -n option (see
OPTIONS below). Thus nmbd will reply to broadcast queries for its own
name(s). Additional names for nmbd to respond on can be set via parameters in
the smb.conf(5) configuration file.

在其它的服务中,nmbd将监听这样的请求,如果客户自身的NetBIOS名字已被指定的话就
用正在运行的主机IP地址回复它。这个“自身的NetBIOS名字”在默认情况下将是正在运
行的主机在DNS中的名字,但可以用-n参数(查看后面关于OPTIONS的描述)越过它。从而
nmbd将用它自已的名字来回应广播查询。要让nmbd回应额外名字的话可以在smb.conf(5)
配置文件中通过参数来设定。

nmbd can also be used as a WINS (Windows Internet Name Server) server. What
this basically means is that it will act as a WINS database server, creating
a database from name registration requests that it receives and replying to
queries from clients for these names.

nmbd也可用作一个WINS(Windows互联网名称服务)服务器。它作为WINS数据库服务器运作
时,用名字注册请求来建立一个数据库以接收和回应客户对这些名字的查询。

In addition, nmbd can act as a WINS proxy, relaying broadcast queries from
clients that do not understand how to talk the WINS protocol to a WIN
server.

另外,nmbd也可以作WINS代理,转发用户不能直接以WINS协议和WINS服务器交谈的广播查
询。

OPTIONS

选项

-D
If specified, this parameter causes nmbd to operate as a daemon. That is, it
detaches itself and runs in the background, fielding requests on the
appropriate port. By default, nmbd will NOT operate as a daemon. nmbd can
also be operated from the inetd meta-daemon, although this is not
recommended.
如果指定这个参数的话,将使nmbd作为一个后台守护程序运行。这样,它分配本身的进程
在后台运行,并监视适当的端口请求。在默认情况下,nmbd将不以后台方式运行。nmbd也
能通过inetd这个超级守护程序来启动,但不推荐这样做。
-a
If this parameter is specified, each new connection will append log messages
to the log file. This is the default.
使用这个参数后,每个新的联接都将被作为记录添加到登录信息文件。这个参数默认情况
下将被使用。
-o
If this parameter is specified, the log files will be overwritten when
opened. By default, the log files will be appended to.
使用这个参数后,记录文件将被覆盖。但默认情况是对记录文件作添加操作。
-h
Prints the help information (usage) for nmbd.
打印出nmbd的帮助信息(用法)。
-V
Prints the version number for nmbd.
打印出nmbd的版本信息。
-H filename
NetBIOS lmhosts file.
指定NetBIOS的lmhosts文件。

The lmhosts file is a list of NetBIOS names to IP addresses that is loaded by
the nmbd server and used via the name resolution mechanism name resolve order
described in smb.conf (5) to resolve any NetBIOS name queries needed by the
server. Note that the contents of this file are NOT used by nmbd to answer
any name queries. Adding a line to this file affects name NetBIOS resolution
from this host ONLY.

NetBIOS的lmhosts文件是一份NetBIOS名字到IP地址对应关系的列表,nmbd服务器将会通
过在smb.conf (5)文件中name resolve order描述的名字解析机制来装入和使用这个文件
,以便让服务器解析可能的NetBIOS名字查询。注意到nmbd并不用这个文件的内容来回答
可能的名字查询。在这个文件中添加内容只会影响本计算机的NetBIOS名字解析。

The default path to this file is compiled into Samba as part of the build
process. Common defaults are /usr/local/samba/lib/lmhosts, /usr/samba/lib/lmho
sts or /etc/lmhosts. See the lmhosts (5) man page for details on the contents
of this file.

这个文件的默认存放路径已被作为编译处理的一部分加入到samba中了。通常默认路径是
/usr/local/samba/lib/lmhosts,/usr/samba/lib/lmhosts 或 /etc/lmhosts。在
lmhosts (5)手册页中查找描述此文件的详细内容。

-d debuglevel
debuglevel is an integer from 0 to 10.
debuglevel是一个从0到10的整数。

The default value if this parameter is not specified is zero.

如果没有指定此参数则默认的值是0。

The higher this value, the more detail will be logged to the log files about
the activities of the server. At level 0, only critical errors and serious
warnings will be logged. Level 1 is a reasonable level for day to day running
- it generates a small amount of information about operations carried out.

如果这个值越高,越多关于服务器的详细活动信息将被记录到文件中。在0调试级时,只
记录紧急错误和严重警告。对于日以即日地运行服务,1调试级是个合理的等级,它只产
生一定数量的关于执行操作的信息。

Levels above 1 will generate considerable amounts of log data, and should
only be used when investigating a problem. Levels above 3 are designed for
use only by developers and generate HUGE amounts of log data, most of which
is extremely cryptic.

1以上的调试级将产生相当多的记录数据,并且只在研究问题时才有用。3以上的调试级只
被设计为让开发者使用并会产生极大数量的记录数据,而且其中很多部分非常难以理解。

Note that specifying this parameter here will override the log level
parameter in the smb.conf (5) file.

注意在此使用这个参数将越过在smb.conf (5)文件中的log level参数。

-l logfile
The -l parameter specifies a path and base filename into which operational
data from the running nmbd server will be logged. The actual log file name is
generated by appending the extension ".nmb" to the specified base name. For
example, if the name specified was "log" then the file log.nmb would contain
the debugging data.
用参数-l可以指定一个带路径的文件名用于nmbd服务器作为记录文件,并会在你给出的名
称后自动加上“.nmb”的扩展名。例如,你指定记录文件名为“log”时,log.nmb将用来
记录这些调试数据。

The default log file path is compiled into Samba as part of the build
process. Common defaults are /usr/local/samba/var/log.nmb, /usr/samba/var/log.
nmb or /var/log/log.nmb.

当然,默认的记录文件路径信息已经作为编译处理的一部分写入了samba中。通常这个默
认的路径和文件名是/usr/local/samba/var/log.nmb,/usr/samba/var/log.nmb 或
/var/log/log.nmb 。

-n primary NetBIOS name
This option allows you to override the NetBIOS name that Samba uses for
itself. This is identical to setting the NetBIOS name parameter in the
smb.conf file but will override the setting in the smb.conf file.
这个选项允许你指定一个非samba自身使用的NetBIOS名字。同样的,要达到这个目的也可
以在smb.conf文件的NetBIOS name参数中进行设定,这样就不需要用这个参数来越过在
smb.conf文件中的设定了。
-p UDP port number
UDP port number is a positive integer value.
我们知道UDP端口号被定义为一个正整数。

This option changes the default UDP port number (normally 137) that nmbd
responds to name queries on. Don't use this option unless you are an expert,
in which case you won't need help!

我们可以用这个选项来改变nmbd响应查询的默认UDP端口号(通常它是137)。除非你是位这
方面的专家,否则请不要用这个选项改变它。

-s configuration file
The default configuration file name is set at build time, typically as
/usr/local/samba/lib/smb.conf, but this may be changed when Samba is
autoconfigured.
我们已经在编译时设好默认的配置文件名,通常是/usr/local/samba/lib/smb.conf。但
是当对samba进行自动配置时也可以通过这个参数来改变默认值。

The file specified contains the configuration details required by the server.
See smb.conf (5) for more information.

这个配置文件中包含了服务器必须的详细信息。要获得更多信息,请参见smb.conf (5)。

-i scope
This specifies a NetBIOS scope that nmbd will use to communicate with when
generating NetBIOS names. For details on the use of NetBIOS scopes, see
rfc1001.txt and rfc1002.txt. NetBIOS scopes are very rarely used, only set
this parameter if you are the system administrator in charge of all the
NetBIOS systems you communicate with.
这个参数指定一个nmbd产生NetBIOS名字通信时所需要的NetBIOS范围。对于NetBIOS范围
这个概念,可以参见rfc1001.txt和rfc1002.txt这两个文件中的详细定义。实际上这个
NetBIOS范围的概念很少被用到,仅当你作为负责整个NetBIOS通信的管理员时才要设置。

FILES

相关文件

/etc/inetd.conf

If the server is to be run by the inetd meta-daemon, this file must contain
suitable startup information for the meta-daemon.

如果你用inetd这个超级守护程序来运行nmbd服务器,那么必须在这个文件中包含适当的
启动参数和信息。

/etc/rc

(or whatever initialization script your system uses).

(也可以是你的系统所用的其它初始化脚本)

If running the server as a daemon at startup, this file will need to contain
an appropriate startup sequence for the server.

如果用启动脚本来运行nmbd服务器,那么必须在这个文件中指定适当的次序来启动服务器

/usr/local/samba/lib/smb.conf

This is the default location of the smb.conf server configuration file. Other
common places that systems install this file are /usr/samba/lib/smb.conf and
/etc/smb.conf.

这是服务器配置文件smb.conf默认的存放位置。系统安装配置文件通常的一些其它位置也
可能是/usr/samba/lib/smb.conf and /etc/smb.conf。

When run as a WINS server (see the wins support parameter in the smb.conf (5)
man page), nmbd will store the WINS database in the file wins.dat in the
var/locks directory configured under wherever Samba was configured to install
itself.

当nmbd被用作WINS服务器时(参见smb.conf (5)手册页中对wins support参数的描述),它
将会把WINS数据库文件wins.dat写到/var/locks目录下。

If nmbd is acting as a browse master (see the local master parameter in the
smb.conf (5) man page), nmbd will store the browsing database in the file
browse.dat in the var/locks directory configured under wherever Samba was
configured to install itself.

如果你把nmbd作为主浏览器(参见smb.conf (5)手册页中对local master参数的描述),它
将会把浏览数据库browse.dat写到/var/locks目录下。

SIGNALS

服务器相关信号

To shut down an nmbd process it is recommended that SIGKILL (-9) NOT be used,
except as a last resort, as this may leave the name database in an
inconsistent state. The correct way to terminate nmbd is to send it a SIGTERM
(-15) signal and wait for it to die on its own.

我们不推荐你使用SIGKILL (-9)来终止nmbd进程除非这是最后的方法,因为这样做可能导
致名字数据库不协调。正确的方法是发送SIGTERM (-15)信号并等待程序自行结束。

nmbd will accept SIGHUP, which will cause it to dump out it's namelists into
the file namelist.debug in the /usr/local/samba/var/locks directory (or the
var/locks directory configured under wherever Samba was configured to install
itself). This will also cause nmbd to dump out it's server database in the
log.nmb file. In addition, the debug log level of nmbd may be raised by
sending it a SIGUSR1 (kill -USR1 ) and lowered by sending it a
SIGUSR2 (kill -USR2 ). This is to allow transient problems to be
diagnosed, whilst still running at a normally low log level.

nmbd可以接受SIGHUP信号,这样程序将把名字清单写入位于/usr/local/samba/var/locks
(或是var/locks)目录下的namelist.debug文件,同时这个信号也将导致程序把服务器上
的数据写入log.nmb文件。另外,nmbd程序的调试记录等级也可以通过向程序发送一个
SIGUSR1信号(kill -USR1 )或SIGUSR2信号(kill -USR2 )来提高或
是降低。通过使用这样的方法可以诊断一些短暂的问题,同时仍然可以在一个正常的并且
较低的记录等级来运行。

VERSION

版本

This man page is correct for version 2.0 of the Samba suite.

此手册页是针对samba套件版本2.0的。

SEE ALSO

参见

inetd (8), smbd (8), smb.conf (5), smbclient (1), testparm (1), testprns (1),
and the Internet RFC's rfc1001.txt, rfc1002.txt. In addition the CIFS
(formerly SMB) specification is available as a link from the Web page :
http://samba.org/cifs/.

inetd (8),smbd (8),smb.conf (5),smbclient (1),testparm (1),testprns (1)及
互联网标准RFC中的rfc1001.txt和rfc1002.txt文件。另外也可以在http://samba.org/ci
fs/处找到CIFS(原先称谓SMB)的规范说明。

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)查找如何获得一份完整的维护者列表以及如何提交错误报告及注解等等[@more@]n

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/571898/viewspace-900750/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/571898/viewspace-900750/

nmbd samba中文相关推荐

  1. 鸟哥的Linux私房菜(服务器)- 第十六章、文件服务器之二: SAMBA 服务器

    第十六章.文件服务器之二: SAMBA 服务器 最近更新日期:2011/07/29 如果想要共享档案,在 Linux 对 Linux 的环境下,最简单的方法就是透过 NIS 这玩意儿了!至于 Wind ...

  2. 第十六章、文件服务器之二: SAMBA 服务器

    如果想要共享档案,在 Linux 对 Linux 的环境下,最简单的方法就是透过 NIS 这玩意儿了!至于 Windows 对 Windows 的环境下,最简单的方法则是『网络上的芳邻』啊.那如果你的 ...

  3. Samba服务器的使用

            第十六章.檔案伺服器之二: SAMBA 伺服器 切換解析度為 800x600 最近更新日期:2011/07/29 如果想要共用檔案,在 Linux 對 Linux 的環境下,最簡單的方 ...

  4. linux中文乱码的解决

    遇到问题 :在linux系统中,如果出现下面这种情况 那么vi /etc/sysconfig/i18n,改为:LANG=zh-CN.如: 然后再试一次不会出现乱码,会显示英文 如果是在linux上搭建 ...

  5. 鸟哥的linux私房菜运维篇,鸟哥的Linux私房菜学习笔记之SAMBA

    鸟哥的Linux私房菜学习笔记之SAMBA 发布时间:2020-06-24 01:44:50 来源:51CTO 阅读:185 作者:tomshen NFS仅能让Unix/linux之间共享数据,CIF ...

  6. Linux 服务详解

    acpid ACPI(全称 Advanced Configuration and Power Interface)服务是电源管理接口.建议所有的笔记本用户开启它.一些服务器可能不需要 acpi.支持的 ...

  7. Linux 服务具体解释

    acpid ACPI(全 称 Advanced Configuration and Power Interface)服务是电源管理接口. 建议全部的笔记本用户开启它. 一些server可能不须要 ac ...

  8. linux 常见服务

    acpid ACPI(全 称 Advanced Configuration and Power Interface)服务是电源管理接口.建议所有的笔记本用户开启它.一些服务器可能不需要 acpi.支持 ...

  9. Linux下的系统服务

    服务,其实就是运行在操作系统后台的一个或者多个应用程序,为计算机系统或用户提供某项特定的服务.服务通常是不中断运行的,随时准备接受请求,从而提供某项服务.下面详细介绍下linux系统服务. acpid ...

最新文章

  1. TOP命令的补充笔记
  2. [读书笔记]C#学习笔记七: C#4.0中微小改动-可选参数,泛型的可变性
  3. ubuntu无限卡在logo界面
  4. 人的一生为什么要努力 1
  5. python学习笔记(七)——类基础
  6. rust(70)-条件表达式
  7. python-装饰器简介
  8. mysql 唯一索引_面试官:谈谈你对mysql索引的认识?
  9. HDU1829【种类并查集】
  10. 【代码笔记】iOS-切换条
  11. 关于触摸方向判断的bug
  12. 图像大小批量调整工具Image Resizer for Mac
  13. python错误异常
  14. 电力系统通信与网络技术/智能变电站个人总结
  15. 计算机组装维护教学总结,计算机组装与维护教学总结.doc
  16. 计算机专业对体重有要求吗,毕业季|@毕业生,你知道计算机学院有多重吗?
  17. 【《编码(Coding)》读后感】隐匿在计算机软硬件背后的语言
  18. 葫芦娃系列棋牌服务器在哪里,葫芦娃—【关服】葫芦娃关服公告
  19. flink java快速上手
  20. linux下.tar.gz如何解压

热门文章

  1. Python——利用协程实现视频的拖影效果
  2. MP2451问题记录
  3. php strstr批量替换,也就这样,
  4. 开关电源环路的零极点可以在反馈端补偿吗_开关电源的建模和环路补偿设计(1):小信号建模的基本概念和方法(一)...
  5. Linux 命令(179)—— nice 命令
  6. 家政?保险?滴滴?外卖?通信人的转型方向,究竟在哪?
  7. 电商工具箱之淘宝黑号库
  8. js延迟(异步)加载的6种方式 为什么要延迟加载js呢?
  9. 自媒体视频搬运,技术分享给大家!
  10. 加装ssd固态硬盘基本要求