.\"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