sourCEntral - mobile manpages

pdf

NMBD

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) 套件的一部分。

nmbd 是一個回應構造於IP之上的NetBIOS名字服務請求的伺服器,這些請求由SMBD/CIFS 客戶(如Windows 95/98、NT和LanManager客戶)產生。當然它也參與構造Windows的"網 絡鄰居”檢視的瀏覽協議。

當SMB/CIFS客戶機啟動時,會試圖查詢一個SMB/CIFS伺服器。說得更精確些就是它們要知道 正在使用的主機對應的IP地址。

在其它的服務中,nmbd 將監聽這樣的請求,如果客戶自身的NetBIOS名字已被指定的話就用正 在執行的主機IP地址回覆它。這個“自身的NetBIOS名字”在預設情況下將是正在執行的主機在 DNS中的名字,但可以用 -n 引數(檢視後面關於OPTIONS的描述)越過它。從而nmbd 將用它自已的名字來回應廣播查詢。要讓 nmbd 回應額外名字的話可以在smb.conf(5)配置檔案中透過引數來設定。

nmbd 也可用作一個WINS(Windows網際網路名稱服務)伺服器。它作為WINS資料庫伺服器運作時,用名字註冊請求來建立一個數據庫以接收和回應客戶對這些名字的查詢。

另外,nmbd 也可以作WINS代理,轉發使用者不能直接以WINS協議和WINS伺服器交談的廣播查詢。

選項 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名字解析。

這個檔案的預設存放路徑已被作為編譯處理的一部分加入到samba中了。通常預設路徑是
/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。

如果這個值越高,越多關於伺服器的詳細活動資訊將被記錄到檔案中。在0除錯級時,只記錄緊急錯誤 和嚴重警告。對於日以即日地執行服務,1除錯級是個合理的等級,它只產生一定數量的關於執行操作 的資訊。

1以上的除錯級將產生相當多的記錄資料,並且只在研究問題時才有用。3以上的除錯級只被設計為讓開 發者使用並會產生極大數量的記錄資料,而且其中很多部分非常難以理解。

注意在此使用這個引數將越過在smb.conf 檔案中的log level 引數。

-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

(也可以是你的系統所用的其它初始化指令碼)

如果將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 引數的描述), nmbd 將會把WINS資料庫檔案wins.dat寫到 var/locks 目錄下。

如果 nmbd 作為 主瀏覽器 (參見smb.conf (5)手冊頁中對local master引數的描述),nmbd將會把瀏覽資料庫browse.dat 寫到var/locks目錄下。

訊號 SIGNALS

我們 推薦你使用SIGKILL (-9)來終止nmbd程序除非這是最後的方法,因為這樣做可能導致名字資料庫不一致。正確的方法是傳送SIGTERM (-15)訊號並等待程式自行結束。

nmbd 可以接受SIGHUP訊號,這樣程式將把名字清單寫入位於/usr/local/samba/var/locks (或是var/locks)目錄下的namelist.debug檔案,同時這個訊號也將導致程式把伺服器的資料庫寫入log.nmb檔案。

另外,nmbd程式的除錯記錄等級也可以透過smbcontrol(1) 調高或者調低。(向程式傳送一個SIGUSR1訊號(kill -USR1 <nmbd-pid>)或SIGUSR2訊號(kill -USR2 <nmbd-pid>)的方法在Samba2.2 中已經不再使用。) 透過使用這樣的方法可以診斷一些暫時的問題,同時仍然可以在一個正常的並且較低的記錄等級來執行。

版本 VERSION

此手冊頁是針對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/網頁上找到連結。

作者 AUTHOR

samba軟體和相關工具最初由Andrew Tridgell建立。samba現在由Samba Team 作為開源軟體來發展,類似linux核心的開發方式。

最初的samba手冊頁是 Karl Auer寫的。 手冊頁原始碼已經轉換為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 AT 21cn DOT com>

[中文版最新更新]

2000/12/08

《中國linux論壇man手冊頁翻譯計劃》:

http://cmpp.linuxforum.net

本頁面中文版由中文 man 手冊頁計劃提供。
中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh

pdf