Manpages

NAME

wbinfo - 向 winbind服 務 查 詢 信 息

總 覽 SYNOPSIS

wbinfo [-a user%password] [-c username] [-C groupname] [--domain domain] [-I ip] [-s sid] [-u] [-U uid] [-g] [--get-auth-user] [-G gid] [-m] [-n name] [-N netbios-name] [-o user:group] [-O user:group] [-p] [-r user] [--set-auth-user user%password] [--sequence] [-S sid] [-t] [-x username] [-X groupname] [-Y sid]

描 述 DESCRIPTION

此 工 具 是 Samba(7) 套 件 的 一 部 分 。

wbinfo程 序 查 詢 並 返 回 由 winbindd(8)服 務 建 立 和 使 用 的 那 些 信 息 。

winbindd(8)進 程 必 須 爲 wbinfo程 序 而 進 行 配 置 及 運 行 , 以 便 可 以 返 回 信 息 。

選 項 OPTIONS

-a username%password

Attempt to authenticate a user via winbindd. This checks both authenticaion methods and reports its results.

-c user

Create a local winbind user.

-C group

Create a local winbindd group.

--domain name

This parameter sets the domain on which any specified operations will performed. If special domain name ’.’ is used to represent the current domain to which winbindd belongs. Currently only the --sequence, -u, and -g options honor this parameter.

-g 該 選 項 可 以 列 出

winbindd(8)服 務 所 運 行 的 那 個 Windows NT域 中 所 有 可 以

獲 得 的 用 戶 組 。 所 有 受 託 域 中 的 用 戶 組 也 將 被 列 出 。 注 意 該 操 作 並 不 爲 任 何 winbindd(8)還 未 獲 悉 的 用 戶 組 分 配 組 ID。

--get-auth-user

Print username and password used by winbindd during session setup to a domain controller. Username and password can be set using ’-A’. Only available for root.

-G gid 該 選 項 試 圖 把 一 個

UNIX組 ID轉 換 爲 一 個 Windows NT的 SID。 如 果 指 定

的 GID無 法 對 應 到 idmap的 GID範 圍 中 , 則 操 作 失 敗 。

-I ip

The -I option queries winbindd(8) to send a node status request to get the NetBIOS name associated with the IP address specified by the ip parameter.

-m

該 選 項 產 生 一 份 當 winbindd(8)在 進 行 名 字 解 析 時 所 聯 繫 的 Windows NT服 務 器 信 任 的 域 列 表 。 該 列 表 不 含 主 域 控 制 器 所 在 的 那 個 NT域 。

-n name 該 選 項 向 winbindd(8)查 詢 指 定 名 字 所 分 配 的 SID。 使 用 winbind分 隔 字 符 可 以 在 用 戶 名 前 指 定 域 名 。 例 如 CWDOM1/Administrator就 是 引 用 域 CWDOM1中 的 管 理 員 。 如 不 指 定 域 , 則 使 用 smb.conf(5)workgroup參 數 所 指 定 的 值 作 爲 域 名 。 [譯 者 注 : SID義 爲 安 全 標 識 ]
-N name

The -N option queries winbindd(8) to query the WINS server for the IP address associated with the NetBIOS name specified by the name parameter.

-o user:group

Add a winbindd local group as a secondary group for the specified winbindd local user.

-O user:group

Remove a winbindd local group as a secondary group for the specified winbindd local user.

-p

Check whether winbindd is still alive. Prints out either ’succeeded’ or ’failed’.

-r username

Try to obtain the list of UNIX group ids to which the user belongs. This only works for users defined on a Domain Controller.

-s sid 用

-s可 以 把 一 個 SID解 析 爲 一 個 名 字 。 這 正 好 與 上 面 那 個 -n選 項 相

反 。 SID必 須 按 傳 統 的 微 軟 格 式 , 用 ASCII字 串 來 指 定 。 例 如 S-1-5-21-1455342024-3071081365-2475485837-500。

--set-auth-user username%password

Store username and password used by winbindd during session setup to a domain controller. This enables winbindd to operate in a Windows 2000 domain with Restrict Anonymous turned on (a.k.a. Permissions compatiable with Windows 2000 servers only).

--sequence

Show sequence numbers of all known domains

-S sid 該 選 項 把 一 個

SID轉 換 爲 一 個 UNIX用 戶 ID。 如 果 SID與 winbindd(8)所 映 射

的 UNIX用 戶 不 符 合 則 操 作 失 敗 。

-t 該 選 項 對

samba服 務 器 加 入 到 NT域 中 時 所 建 立 的 工 作 站 信 任 賬 號 進 行 校

驗 。

-u 該 選 項 可 以 列 出

winbindd(8)服 務 所 在 的 那 個 Windows NT域 中 所 有 可 以 得

到 的 用 戶 。 所 有 受 託 域 中 的 用 戶 也 將 被 列 出 。 注 意 該 操 作 並 不 爲 任 何 winbindd(8)尚 未 獲 悉 的 用 戶 分 配 用 戶 ID。

-U uid 該 選 項 試 圖 把 一 個

UNIX用 戶 ID轉 換 爲 一 個 Windows NT的 SID。 如 果 指 定

的 UID無 法 對 應 到 winbind的 UID範 圍 中 , 則 操 作 失 敗 。

-x user

Delete an existing local winbind user.

-X group

Delete an existing local winbindd group.

-Y sid 該 選 項 把 一 個

SID轉 換 爲 一 個 UNIX組 ID。 如 果 SID與 winbindd(8)所 映 射

的 UNIX組 不 符 合 則 操 作 失 敗 。

-V

Prints the program version number.

-h|--help

Print a summary of command line options.

退 出 狀 態 EXIT STATUS

wbinfo程 序 在 操 作 成 功 時 返 回 0, 否 則 返 回 1。 如 果 winbindd(8)當 前 不 在 運 行 , 則 wbinfo總 是 返 回 失 敗 信 號 。

版 本 VERSION

這 份 手 冊 頁 在 Samba套 件 三 中 經 過 了 校 正 。

參 見 SEE ALSO

winbindd(8)

作 者 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.com>

[中 文 版 最 新 更 新 ]

2000/12/08

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

http://cmpp.linuxforum.net

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