other languages
NMBD(8) | NMBD(8) |
NAME¶
nmbd - 向客戶端提供構造在IP之上的NetBIOS名字服務的NetBIOS名字伺服器總覽 SYNOPSIS¶
nmbd [-D] [-F] [-S] [-a] [-i] [-o] [-h] [-V][-d <debug level>] [-H <lmhosts file>] [-l <log directory>][-n <primary netbios name>] [-p <port number>] [-s <configuration file>]描述 DESCRIPTION¶
此程式是 Samba(7) 套件的一部分。選項 OPTIONS¶
- -D
- 如果指定這個參數的話,將使
nmbd
作為一個背景守護程式運行。這樣,它分配本身的進程在背景運行,並監視適當的端口請求。在預設情況下,
nmbd
通常以命令行方式啟動,背景運行。
nmbd 也能通過inetd
這個超級守護程式來啟動,但不推薦這樣做。
- -F
- If specified, this parameter causes the main nmbd
process to not daemonize, i.e. double-fork and disassociate with the
terminal. Child processes are still created as normal to service each
connection request, but the main process does not exit. This operation
mode is suitable for running nmbd under process supervisors such as
supervise and svscan from Daniel J. Bernstein's
daemontools package, or the AIX process monitor.
- -S
- If specified, this parameter causes nmbd to log to
standard output rather than a file.
- -i
- If this parameter is specified it causes the server to run
"interactively", not as a daemon, even if the server is executed
on the command line of a shell. Setting this parameter negates the
implicit daemon mode when run from the command line. nmbd also logs
to standard output, as if the -S parameter had been given.
- -h|--help
- Print a summary of command line options.
- -H <filename>
- 指定NetBIOS的lmhosts檔案。
NetBIOS的lmhosts檔案是一份NetBIOS名字到IP地址對應關系的列表,
nmbd伺服器將會通過在
smb.conf (5)檔案中 name resolve
order描述的名字解析機制來裝入和使用這個檔案,以便讓伺服器解析可能的NetBIOS名字查詢。注意到nmbd並
不用這個檔案的內容來回答可能的名字查詢。在這個檔案中添加內容只會影響本電腦的NetBIOS名字解析。
/usr/local/samba/lib/lmhosts, /usr/samba/lib/lmhosts 或是 /etc/samba/lmhosts。 在lmhosts (5)手冊頁中查找描述此檔案的詳細內容。
- -V
- 列印出nmbd的版本信息。
- -s <configuration file>
- The file specified contains the configuration details
required by the server. The information in this file includes
server-specific information such as what printcap file to use, as well as
descriptions of all the services that the server is to provide. See
smb.conf for more information. The default configuration file name
is determined at compile time.
- -d|--debug=debuglevel
- debuglevel
是一個從0到10的整數。如果沒有指定此參數則預設的值是0。
- -l|--logfile=logbasename
- 用參數-l可以指定一個帶路徑的檔名作為記錄檔案,並會在你給出的名稱後自動加上
".client"的擴展名。The log
file is never removed by the client.
- -p <UDP port number>
- UDP端口號是一個正整數。
這個選項來改變
nmbd響應查詢的預設UDP端口號(通常它是
137)
。除非你是位這方面的專家,否則請不要用這個選項改變它。
檔案 FILES¶
- /etc/inetd.conf
- 如果你用 inetd
這個超級守護程式來運行nmbd伺服器,那麼必須在這個檔案中包含適當的啟動參數和信息。
- /etc/rc
- (也可以是你的系統所用的其它初始化稿本)
- /etc/services
- If running the server via the meta-daemon inetd,
this file must contain a mapping of service name (e.g., netbios-ssn) to
service port (e.g., 139) and protocol type (e.g., tcp).
- /usr/local/samba/lib/smb.conf
- 這是伺服器配置檔案
smb.conf(5)
預設的存放位置。
系統安裝配置檔案通常的一些其它位置也可能是
/usr/samba/lib/smb.conf 和 /etc/samba/smb.conf。