.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "WBINFO" 1 "" "" "" .SH NAME wbinfo \- 向winbind服務查詢信息 .SH "總覽 SYNOPSIS" \fBwbinfo\fR [-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] .SH "描述 DESCRIPTION" .PP 此工具是 \fBSamba\fR(7) 套件的一部分。 .PP \fBwbinfo\fR程序查詢並返回由\fBwinbindd\fR(8)服務建立和使用的那些信息。 .PP \fBwinbindd\fR(8)進程必須爲\fBwbinfo\fR程序而進行配置及運行,以便可以返回信息。 .SH "選項 OPTIONS" .TP -a username%password Attempt to authenticate a user via winbindd\&. This checks both authenticaion methods and reports its results\&. .TP -c user Create a local winbind user\&. .TP -C group Create a local winbindd group\&. .TP --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 \fB--sequence\fR, \fB-u\fR, and \fB-g\fR options honor this parameter\&. .TP -g 該選項可以列出\fBwinbindd\fR(8)服務所運行的那個\fIWindows NT\fR域中所有可以獲得的用戶組。所有受託域中的用戶組也將被列出。注意該操作並不爲任何\fBwinbindd\fR(8)還未獲悉的用戶組分配組ID。 .TP --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\&. .TP -G gid 該選項試圖把一個UNIX組ID轉換爲一個\fIWindows NT\fR的SID。如果指定的GID無法對應到idmap的GID範圍中,則操作失敗。 .TP -I ip The \fI-I\fR option queries \fBwinbindd\fR(8) to send a node status request to get the NetBIOS name associated with the IP address specified by the \fIip\fR parameter\&. .TP -m 該選項產生一份當\fBwinbindd\fR(8)在進行名字解析時所聯繫的\fIWindows NT\fR服務器信任的域列表。該列表不含主域控制器所在的那個NT域。 .TP -n name 該選項向\fBwinbindd\fR(8)查詢指定名字所分配的SID。使用winbind分隔字符可以在用戶名前指定域名。例如CWDOM1/Administrator就是引用域CWDOM1中的管理員。如不指定域,則使用\fBsmb.conf\fR(5)中\fIworkgroup\fR參數所指定的值作爲域名。[譯者注:SID義爲安全標識] .TP -N name The \fI-N\fR option queries \fBwinbindd\fR(8) to query the WINS server for the IP address associated with the NetBIOS name specified by the \fIname\fR parameter\&. .TP -o user:group Add a winbindd local group as a secondary group for the specified winbindd local user\&. .TP -O user:group Remove a winbindd local group as a secondary group for the specified winbindd local user\&. .TP -p Check whether winbindd is still alive\&. Prints out either 'succeeded' or 'failed'\&. .TP -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\&. .TP -s sid 用\fI-s\fR可以把一個SID解析爲一個名字。這正好與上面那個\fI-n\fR選項相反。SID必須按傳統的\fI微軟格式\fR, 用ASCII字串來指定。例如S-1-5-21-1455342024-3071081365-2475485837-500。 .TP --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)\&. .TP --sequence Show sequence numbers of all known domains .TP -S sid 該選項把一個SID轉換爲一個UNIX用戶ID。如果SID與\fBwinbindd\fR(8)所映射的UNIX用戶不符合則操作失敗。 .TP -t 該選項對samba服務器加入到NT域中時所建立的工作站信任賬號進行校驗。 .TP -u 該選項可以列出\fBwinbindd\fR(8)服務所在的那個\fIWindows NT\fR域中所有可以得到的用戶。所有受託域中的用戶也將被列出。注意該操作並不爲任何\fBwinbindd\fR(8)尚未獲悉的用戶分配用戶ID。 .TP -U uid 該選項試圖把一個UNIX用戶ID轉換爲一個\fIWindows NT\fR的SID。如果指定的UID無法對應到winbind的UID範圍中,則操作失敗。 .TP -x user Delete an existing local winbind user\&. .TP -X group Delete an existing local winbindd group\&. .TP -Y sid 該選項把一個SID轉換爲一個UNIX組ID。如果SID與\fBwinbindd\fR(8)所映射的UNIX組不符合則操作失敗。 .TP -V Prints the program version number\&. .TP -h|--help Print a summary of command line options\&. .SH "退出狀態 EXIT STATUS" .PP wbinfo程序在操作成功時返回0,否則返回1。如果\fBwinbindd\fR(8)當前不在運行,則\fBwbinfo\fR總是返回失敗信號。 .SH "版本 VERSION" .PP 這份手冊頁在Samba套件三中經過了校正。 .SH "參見 SEE ALSO" .PP \fBwinbindd\fR(8) .SH "作者 AUTHOR" .PP samba軟件和相關工具最初由Andrew Tridgell創建。samba現在由Samba Team 作爲開源軟件來發展,類似linux內核的開發方式。 .PP 最初的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 格式的轉換。 .SH "[中文版維護人]" .B meaculpa .SH "[中文版最新更新]" .B 2000/12/08 .SH "《中國linux論壇man手冊頁翻譯計劃》:" .BI http://cmpp.linuxforum.net .SH "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR