Provided by:
manpages-zh_1.5.1-1_all 
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>]
yz DESCRIPTION
此程式是 Samba(7) 套件的一部分。
nmbd 是一-
茼^應構造於IP之上的NetBIOS名字服務請求的伺服器,這些請求由SMBD/CIFS
客戶(如Windows
95/98、NT和LanManager客戶)產生。當然它也參與構造Windows的"網
絡鄰居」查看的瀏覽協議。
當SMB/CIFS客戶機啟動時,會試圖查找一-
紎MB/CIFS伺服器。說得更精確些就是它帔知道 正在使用的主機對應的IP地址。
在其它的服務中,nmbd 將監聽這樣的請求,如果客戶自-
的NetBIOS名字已被指定的話就用正 在運行的主機IP地址回復它。這荂u自-
的NetBIOS名字」在預設情況下將是正在運行的主機在 DNS中的名字,但可以用
-n 參數(查看後掙鰫蹭PTIONS的描z)越過它。從而nmbd
將用它自已的名字來回應廣播查詢。n讓 nmbd
回應額外名字的話可以在smb.conf(5)配置檔案中通過參數來設定。
nmbd 也可用作一-
紟INS(Windows網際網路名稱服務)伺服器。它作為WINS數據庫伺服器運作時,用名字注冊請求來建立一-
蚍畬w以接收和回應客戶對這些名字的查詢。
另外,nmbd
也可以作WINS代理,轉發使用者不能直接以WINS協議和WINS伺服器交談的廣播查詢。
OPTIONS
-D 如果指定這荌捊爾隉A將使 nmbd 作為一-
I景守護程式運行。這樣,它分配本赤熄i程在-
I景運行,並監視適當的端口請求。在預設情況下, nmbd
通常以命令行方式啟動,I景運行。 nmbd 也能通過inetd 這-
荈W級守護程式來啟動,但不推薦這樣做。
-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描-
z的名字解析機制來裝入和使用這-
蚗仵蛂A以便讓伺服器解析可能的NetBIOS名字查詢。注意到nmbdㄔ帠o-
蚗仵蛌漱漁e來回答可能的名字查詢。在這-
蚗仵蚺仆K加內容只會影響本電腦的NetBIOS名字解析。
這-
蚗仵蛌犒w設存放路徑已被作為編譯處理的一部分加入到samba中了。通常預設路徑是
/usr/local/samba/lib/lmhosts, /usr/samba/lib/lmhosts 或是
/etc/samba/lmhosts。 在lmhosts (5)手冊隊互d找描-
z此檔案的詳細內容。
-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 是一荓q0到10的整數。如果沒有指定此參數則預設的O0。
如果這-
V高,越多關於伺服器的詳細活動信息將被記錄到檔案中。在0調試級時,只記錄緊急錯誤
和嚴孩筆i。對於日以即日地運行服務,1調試級是-
茼X理的等級,它只產生一定數量的關於執行操作 的信息。
1以上的調試級將產生相當多的記錄數據,並且只在研究問題時才有用。3以上的調試級只被設-
p為讓開
發者使用並會產生極大數量的記錄數據,而且其中很多部分非常難以理解。
注意在此使用這荌捊N越過在smb.conf 檔案中的log level 參數。
-l|--logfile=logbasename
用參數-l可以指定一-
荓a路徑的檔名作為記錄檔案,並會在你給出的名稱後自動加上
".client"的擴展名。The log file is never removed by the client.
-p <UDP port number>
UDP端口號是一茈蕪蒱C 這-
蚇龠筐荍幭nmbd響應查詢的預設UDP端口號(通常它是 137)
。除非你是位這方悸滷M家,否則請不n用這蚇龠筆幭雈式C
FILES
/etc/inetd.conf
如果你用 inetd 這荈W級守護程式來運行nmbd伺服器,那麼必須在這-
蚗仵蚺丰]含適當的啟動參數和信息。
/etc/rc
(也可以是你的系統所用的其它初始化稿本)
如果將nmbd當作服務,在啟動時運行,這-
蚗仵蚰眸極]含合適的服務啟動順序。
/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。
當nmbd被用作WINS伺服器時(參見 smb.conf(5) 手冊隊允 wins support
參數的描z), nmbd 將會把WINS數據庫檔案wins.dat寫到 var/locks
目錄下。
如果 nmbd 作為 Ds (參見smb.conf (5)手冊隊允local
master參數的描z),nmbd將會把瀏覽數據庫browse.dat
寫到var/locks目錄下。
H SIGNALS
我 推薦你使用SIGKILL
(-9)來終止nmbd進程除非這是最後的方法,因為這樣做可能導P名字數據庫不一-
P。正確的方法是發送SIGTERM (-15)信號並等待程式自行結束。
nmbd
可以接受SIGHUP信號,這樣程式將把名字清單寫入位於/usr/local/samba/var/locks
(或是var/locks)目錄下的namelist.debug檔案,同時這茷H號也將導-
P程式把伺服器的數據庫寫入log.nmb檔案。
另外,nmbd程式的調試記錄等級也可以通過smbcontrol(1)
調高或者調低。(向程式發送一紎IGUSR1信號(kill -USR1 <nmbd-
pid>)或SIGUSR2信號(kill -USR2 <nmbd-pid>)的方法在Samba2.2
中已經不再使用。)
通過使用這樣的方法可以診斷一些暫時的問題,同時仍然可以在一-
茈膨`的並且較低的記錄等級來運行。
VERSION
此手冊隄O針對samba套件版本3.0的。
SEE ALSO
inetd(8), smbd(8), smb.conf(5), smbclient(1), testparm(1),
testprns(1)還有網際網路草案 rfc1001.txt, rfc1002.txt. 另外,CIFS
(從前的 SMB) 規約可以在 http://samba.org/cifs/網隊W找到鏈接。
@ AUTHOR
samba軟體和相關工具最初由Andrew Tridgell創建。samba現在由Samba Team
作為開源軟體來發展,類似linux核心的開發方式。
最初的samba手冊隄O Karl Auer寫的。 手冊-
鴝l碼已經轉換為YODL格式(另一種很好的開源軟體,可以在ftp://ftp.ice.rug.nl/pub/unix找到),由Jeremy
Sllison 更新到Samba2.0 版本。 Gerald Carter
在Samba2.2中將它轉化為DocBook 格式。 Alexander Bokovoy 在Samba
3.0中實現了DocBook XML4.2 格式的轉換。
[]
meaculpa <meaculpa@21cn.com>
[]
2000/12/08
mlinuxan:
http://cmpp.linuxforum.net
NMBD(8)