| 1 | '\" t
|
|---|
| 2 | .\" Title: wbinfo
|
|---|
| 3 | .\" Author: [see the "AUTHOR" section]
|
|---|
| 4 | .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
|---|
| 5 | .\" Date: 06/14/2011
|
|---|
| 6 | .\" Manual: User Commands
|
|---|
| 7 | .\" Source: Samba 3.5
|
|---|
| 8 | .\" Language: English
|
|---|
| 9 | .\"
|
|---|
| 10 | .TH "WBINFO" "1" "06/14/2011" "Samba 3\&.5" "User Commands"
|
|---|
| 11 | .\" -----------------------------------------------------------------
|
|---|
| 12 | .\" * set default formatting
|
|---|
| 13 | .\" -----------------------------------------------------------------
|
|---|
| 14 | .\" disable hyphenation
|
|---|
| 15 | .nh
|
|---|
| 16 | .\" disable justification (adjust text to left margin only)
|
|---|
| 17 | .ad l
|
|---|
| 18 | .\" -----------------------------------------------------------------
|
|---|
| 19 | .\" * MAIN CONTENT STARTS HERE *
|
|---|
| 20 | .\" -----------------------------------------------------------------
|
|---|
| 21 | .SH "NAME"
|
|---|
| 22 | wbinfo \- Query information from winbind daemon
|
|---|
| 23 | .SH "SYNOPSIS"
|
|---|
| 24 | .HP \w'\ 'u
|
|---|
| 25 | wbinfo [\-a\ user%password] [\-\-all\-domains] [\-\-allocate\-gid] [\-\-allocate\-uid] [\-c] [\-\-ccache\-save] [\-\-change\-user\-password] [\-D\ domain] [\-\-domain\ domain] [\-\-dsgetdcname\ domain] [\-g] [\-\-getdcname\ domain] [\-\-get\-auth\-user] [\-G\ gid] [\-\-gid\-info] [\-\-group\-info] [\-\-help|\-?] [\-i\ user] [\-I\ ip] [\-K\ user%password] [\-\-lanman] [\-m] [\-n\ name] [\-N\ netbios\-name] [\-\-ntlmv2] [\-\-online\-status] [\-\-own\-domain] [\-p] [\-P|\-\-ping\-dc] [\-r\ user] [\-R|\-\-lookup\-rids] [\-\-remove\-uid\-mapping\ uid,sid] [\-\-remove\-gid\-mapping\ gid,sid] [\-s\ sid] [\-\-separator] [\-\-sequence] [\-\-set\-auth\-user\ user%password] [\-\-set\-uid\-mapping\ uid,sid] [\-\-set\-gid\-mapping\ gid,sid] [\-S\ sid] [\-\-sid\-aliases] [\-\-sid\-to\-fullname] [\-t] [\-u] [\-\-uid\-info\ uid] [\-\-usage] [\-\-user\-domgroups\ sid] [\-\-user\-sids\ sid] [\-U\ uid] [\-V] [\-\-verbose] [\-Y\ sid]
|
|---|
| 26 | .SH "DESCRIPTION"
|
|---|
| 27 | .PP
|
|---|
| 28 | This tool is part of the
|
|---|
| 29 | \fBsamba\fR(7)
|
|---|
| 30 | suite\&.
|
|---|
| 31 | .PP
|
|---|
| 32 | The
|
|---|
| 33 | wbinfo
|
|---|
| 34 | program queries and returns information created and used by the
|
|---|
| 35 | \fBwinbindd\fR(8)
|
|---|
| 36 | daemon\&.
|
|---|
| 37 | .PP
|
|---|
| 38 | The
|
|---|
| 39 | \fBwinbindd\fR(8)
|
|---|
| 40 | daemon must be configured and running for the
|
|---|
| 41 | wbinfo
|
|---|
| 42 | program to be able to return information\&.
|
|---|
| 43 | .SH "OPTIONS"
|
|---|
| 44 | .PP
|
|---|
| 45 | \-a|\-\-authenticate \fIusername%password\fR
|
|---|
| 46 | .RS 4
|
|---|
| 47 | Attempt to authenticate a user via
|
|---|
| 48 | \fBwinbindd\fR(8)\&. This checks both authentication methods and reports its results\&.
|
|---|
| 49 | .if n \{\
|
|---|
| 50 | .sp
|
|---|
| 51 | .\}
|
|---|
| 52 | .RS 4
|
|---|
| 53 | .it 1 an-trap
|
|---|
| 54 | .nr an-no-space-flag 1
|
|---|
| 55 | .nr an-break-flag 1
|
|---|
| 56 | .br
|
|---|
| 57 | .ps +1
|
|---|
| 58 | \fBNote\fR
|
|---|
| 59 | .ps -1
|
|---|
| 60 | .br
|
|---|
| 61 | Do not be tempted to use this functionality for authentication in third\-party applications\&. Instead use
|
|---|
| 62 | \fBntlm_auth\fR(1)\&.
|
|---|
| 63 | .sp .5v
|
|---|
| 64 | .RE
|
|---|
| 65 | .RE
|
|---|
| 66 | .PP
|
|---|
| 67 | \-\-allocate\-gid
|
|---|
| 68 | .RS 4
|
|---|
| 69 | Get a new GID out of idmap
|
|---|
| 70 | .RE
|
|---|
| 71 | .PP
|
|---|
| 72 | \-\-allocate\-uid
|
|---|
| 73 | .RS 4
|
|---|
| 74 | Get a new UID out of idmap
|
|---|
| 75 | .RE
|
|---|
| 76 | .PP
|
|---|
| 77 | \-\-all\-domains
|
|---|
| 78 | .RS 4
|
|---|
| 79 | List all domains (trusted and own domain)\&.
|
|---|
| 80 | .RE
|
|---|
| 81 | .PP
|
|---|
| 82 | \-c|\-\-change\-secret
|
|---|
| 83 | .RS 4
|
|---|
| 84 | Change the trust account password\&. May be used in conjunction with
|
|---|
| 85 | \fBdomain\fR
|
|---|
| 86 | in order to change interdomain trust account passwords\&.
|
|---|
| 87 | .RE
|
|---|
| 88 | .PP
|
|---|
| 89 | \-\-ccache\-save \fIusername%password\fR
|
|---|
| 90 | .RS 4
|
|---|
| 91 | Store user and password for ccache\&.
|
|---|
| 92 | .RE
|
|---|
| 93 | .PP
|
|---|
| 94 | \-\-change\-user\-password \fIusername\fR
|
|---|
| 95 | .RS 4
|
|---|
| 96 | Change the password of a user\&. The old and new password will be prompted\&.
|
|---|
| 97 | .RE
|
|---|
| 98 | .PP
|
|---|
| 99 | \-\-domain \fIname\fR
|
|---|
| 100 | .RS 4
|
|---|
| 101 | 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
|
|---|
| 102 | \fBwinbindd\fR(8)
|
|---|
| 103 | belongs\&. Currently only the
|
|---|
| 104 | \fB\-\-sequence\fR,
|
|---|
| 105 | \fB\-u\fR, and
|
|---|
| 106 | \fB\-g\fR
|
|---|
| 107 | options honor this parameter\&.
|
|---|
| 108 | .RE
|
|---|
| 109 | .PP
|
|---|
| 110 | \-D|\-\-domain\-info \fIdomain\fR
|
|---|
| 111 | .RS 4
|
|---|
| 112 | Show most of the info we have about the specified domain\&.
|
|---|
| 113 | .RE
|
|---|
| 114 | .PP
|
|---|
| 115 | \-\-dsgetdcname \fIdomain\fR
|
|---|
| 116 | .RS 4
|
|---|
| 117 | Find a DC for a domain\&.
|
|---|
| 118 | .RE
|
|---|
| 119 | .PP
|
|---|
| 120 | \-\-gid\-info \fIgid\fR
|
|---|
| 121 | .RS 4
|
|---|
| 122 | Get group info from gid\&.
|
|---|
| 123 | .RE
|
|---|
| 124 | .PP
|
|---|
| 125 | \-\-group\-info \fIuser\fR
|
|---|
| 126 | .RS 4
|
|---|
| 127 | Get group info for user\&.
|
|---|
| 128 | .RE
|
|---|
| 129 | .PP
|
|---|
| 130 | \-g|\-\-domain\-groups
|
|---|
| 131 | .RS 4
|
|---|
| 132 | This option will list all groups available in the Windows NT domain for which the
|
|---|
| 133 | \fBsamba\fR(7)
|
|---|
| 134 | daemon is operating in\&. Groups in all trusted domains will also be listed\&. Note that this operation does not assign group ids to any groups that have not already been seen by
|
|---|
| 135 | \fBwinbindd\fR(8)\&.
|
|---|
| 136 | .RE
|
|---|
| 137 | .PP
|
|---|
| 138 | \-\-get\-auth\-user
|
|---|
| 139 | .RS 4
|
|---|
| 140 | Print username and password used by
|
|---|
| 141 | \fBwinbindd\fR(8)
|
|---|
| 142 | during session setup to a domain controller\&. Username and password can be set using
|
|---|
| 143 | \fB\-\-set\-auth\-user\fR\&. Only available for root\&.
|
|---|
| 144 | .RE
|
|---|
| 145 | .PP
|
|---|
| 146 | \-\-getdcname \fIdomain\fR
|
|---|
| 147 | .RS 4
|
|---|
| 148 | Get the DC name for the specified domain\&.
|
|---|
| 149 | .RE
|
|---|
| 150 | .PP
|
|---|
| 151 | \-G|\-\-gid\-to\-sid \fIgid\fR
|
|---|
| 152 | .RS 4
|
|---|
| 153 | Try to convert a UNIX group id to a Windows NT SID\&. If the gid specified does not refer to one within the idmap gid range then the operation will fail\&.
|
|---|
| 154 | .RE
|
|---|
| 155 | .PP
|
|---|
| 156 | \-?
|
|---|
| 157 | .RS 4
|
|---|
| 158 | Print brief help overview\&.
|
|---|
| 159 | .RE
|
|---|
| 160 | .PP
|
|---|
| 161 | \-i|\-\-user\-info \fIuser\fR
|
|---|
| 162 | .RS 4
|
|---|
| 163 | Get user info\&.
|
|---|
| 164 | .RE
|
|---|
| 165 | .PP
|
|---|
| 166 | \-I|\-\-WINS\-by\-ip \fIip\fR
|
|---|
| 167 | .RS 4
|
|---|
| 168 | The
|
|---|
| 169 | \fI\-I\fR
|
|---|
| 170 | option queries
|
|---|
| 171 | \fBwinbindd\fR(8)
|
|---|
| 172 | to send a node status request to get the NetBIOS name associated with the IP address specified by the
|
|---|
| 173 | \fIip\fR
|
|---|
| 174 | parameter\&.
|
|---|
| 175 | .RE
|
|---|
| 176 | .PP
|
|---|
| 177 | \-K|\-\-krb5auth \fIusername%password\fR
|
|---|
| 178 | .RS 4
|
|---|
| 179 | Attempt to authenticate a user via Kerberos\&.
|
|---|
| 180 | .RE
|
|---|
| 181 | .PP
|
|---|
| 182 | \-\-lanman
|
|---|
| 183 | .RS 4
|
|---|
| 184 | Use lanman cryptography for user authentication\&.
|
|---|
| 185 | .RE
|
|---|
| 186 | .PP
|
|---|
| 187 | \-m|\-\-trusted\-domains
|
|---|
| 188 | .RS 4
|
|---|
| 189 | Produce a list of domains trusted by the Windows NT server
|
|---|
| 190 | \fBwinbindd\fR(8)
|
|---|
| 191 | contacts when resolving names\&. This list does not include the Windows NT domain the server is a Primary Domain Controller for\&.
|
|---|
| 192 | .RE
|
|---|
| 193 | .PP
|
|---|
| 194 | \-n|\-\-name\-to\-sid \fIname\fR
|
|---|
| 195 | .RS 4
|
|---|
| 196 | The
|
|---|
| 197 | \fI\-n\fR
|
|---|
| 198 | option queries
|
|---|
| 199 | \fBwinbindd\fR(8)
|
|---|
| 200 | for the SID associated with the name specified\&. Domain names can be specified before the user name by using the winbind separator character\&. For example CWDOM1/Administrator refers to the Administrator user in the domain CWDOM1\&. If no domain is specified then the domain used is the one specified in the
|
|---|
| 201 | \fBsmb.conf\fR(5)
|
|---|
| 202 | \fIworkgroup \fR
|
|---|
| 203 | parameter\&.
|
|---|
| 204 | .RE
|
|---|
| 205 | .PP
|
|---|
| 206 | \-N|\-\-WINS\-by\-name \fIname\fR
|
|---|
| 207 | .RS 4
|
|---|
| 208 | The
|
|---|
| 209 | \fI\-N\fR
|
|---|
| 210 | option queries
|
|---|
| 211 | \fBwinbindd\fR(8)
|
|---|
| 212 | to query the WINS server for the IP address associated with the NetBIOS name specified by the
|
|---|
| 213 | \fIname\fR
|
|---|
| 214 | parameter\&.
|
|---|
| 215 | .RE
|
|---|
| 216 | .PP
|
|---|
| 217 | \-\-ntlmv2
|
|---|
| 218 | .RS 4
|
|---|
| 219 | Use NTLMv2 cryptography for user authentication\&.
|
|---|
| 220 | .RE
|
|---|
| 221 | .PP
|
|---|
| 222 | \-\-online\-status \fIdomain\fR
|
|---|
| 223 | .RS 4
|
|---|
| 224 | Show whether domains are marked as online or offline\&. An optional domain argument limits the output to the online status of a given domain\&.
|
|---|
| 225 | .RE
|
|---|
| 226 | .PP
|
|---|
| 227 | \-\-own\-domain
|
|---|
| 228 | .RS 4
|
|---|
| 229 | List own domain\&.
|
|---|
| 230 | .RE
|
|---|
| 231 | .PP
|
|---|
| 232 | \-p|\-\-ping
|
|---|
| 233 | .RS 4
|
|---|
| 234 | Check whether
|
|---|
| 235 | \fBwinbindd\fR(8)
|
|---|
| 236 | is still alive\&. Prints out either \'succeeded\' or \'failed\'\&.
|
|---|
| 237 | .RE
|
|---|
| 238 | .PP
|
|---|
| 239 | \-r|\-\-user\-groups \fIusername\fR
|
|---|
| 240 | .RS 4
|
|---|
| 241 | Try to obtain the list of UNIX group ids to which the user belongs\&. This only works for users defined on a Domain Controller\&.
|
|---|
| 242 | .RE
|
|---|
| 243 | .PP
|
|---|
| 244 | \-R|\-\-lookup\-rids \fIrid1, rid2, rid3\&.\&.\&.\fR
|
|---|
| 245 | .RS 4
|
|---|
| 246 | Converts RIDs to names\&. Uses a comma separated list of rids\&.
|
|---|
| 247 | .RE
|
|---|
| 248 | .PP
|
|---|
| 249 | \-s|\-\-sid\-to\-name \fIsid\fR
|
|---|
| 250 | .RS 4
|
|---|
| 251 | Use
|
|---|
| 252 | \fI\-s\fR
|
|---|
| 253 | to resolve a SID to a name\&. This is the inverse of the
|
|---|
| 254 | \fI\-n \fR
|
|---|
| 255 | option above\&. SIDs must be specified as ASCII strings in the traditional Microsoft format\&. For example, S\-1\-5\-21\-1455342024\-3071081365\-2475485837\-500\&.
|
|---|
| 256 | .RE
|
|---|
| 257 | .PP
|
|---|
| 258 | \-\-separator
|
|---|
| 259 | .RS 4
|
|---|
| 260 | Get the active winbind separator\&.
|
|---|
| 261 | .RE
|
|---|
| 262 | .PP
|
|---|
| 263 | \-\-sequence
|
|---|
| 264 | .RS 4
|
|---|
| 265 | Show sequence numbers of all known domains\&.
|
|---|
| 266 | .RE
|
|---|
| 267 | .PP
|
|---|
| 268 | \-\-set\-auth\-user \fIusername%password\fR
|
|---|
| 269 | .RS 4
|
|---|
| 270 | Store username and password used by
|
|---|
| 271 | \fBwinbindd\fR(8)
|
|---|
| 272 | 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 compatible with Windows 2000 servers only)\&.
|
|---|
| 273 | .RE
|
|---|
| 274 | .PP
|
|---|
| 275 | \-S|\-\-sid\-to\-uid \fIsid\fR
|
|---|
| 276 | .RS 4
|
|---|
| 277 | Convert a SID to a UNIX user id\&. If the SID does not correspond to a UNIX user mapped by
|
|---|
| 278 | \fBwinbindd\fR(8)
|
|---|
| 279 | then the operation will fail\&.
|
|---|
| 280 | .RE
|
|---|
| 281 | .PP
|
|---|
| 282 | \-\-sid\-aliases \fIsid\fR
|
|---|
| 283 | .RS 4
|
|---|
| 284 | Get SID aliases for a given SID\&.
|
|---|
| 285 | .RE
|
|---|
| 286 | .PP
|
|---|
| 287 | \-\-sid\-to\-fullname \fIsid\fR
|
|---|
| 288 | .RS 4
|
|---|
| 289 | Converts a SID to a full username (DOMAIN\eusername)\&.
|
|---|
| 290 | .RE
|
|---|
| 291 | .PP
|
|---|
| 292 | \-t|\-\-check\-secret
|
|---|
| 293 | .RS 4
|
|---|
| 294 | Verify that the workstation trust account created when the Samba server is added to the Windows NT domain is working\&. May be used in conjunction with
|
|---|
| 295 | \fBdomain\fR
|
|---|
| 296 | in order to verify interdomain trust accounts\&.
|
|---|
| 297 | .RE
|
|---|
| 298 | .PP
|
|---|
| 299 | \-u|\-\-domain\-users
|
|---|
| 300 | .RS 4
|
|---|
| 301 | This option will list all users available in the Windows NT domain for which the
|
|---|
| 302 | \fBwinbindd\fR(8)
|
|---|
| 303 | daemon is operating in\&. Users in all trusted domains will also be listed\&. Note that this operation does not assign user ids to any users that have not already been seen by
|
|---|
| 304 | \fBwinbindd\fR(8)
|
|---|
| 305 | \&.
|
|---|
| 306 | .RE
|
|---|
| 307 | .PP
|
|---|
| 308 | \-\-uid\-info \fIuid\fR
|
|---|
| 309 | .RS 4
|
|---|
| 310 | Get user info for the user connected to user id UID\&.
|
|---|
| 311 | .RE
|
|---|
| 312 | .PP
|
|---|
| 313 | \-\-usage
|
|---|
| 314 | .RS 4
|
|---|
| 315 | Print brief help overview\&.
|
|---|
| 316 | .RE
|
|---|
| 317 | .PP
|
|---|
| 318 | \-\-user\-domgroups \fIsid\fR
|
|---|
| 319 | .RS 4
|
|---|
| 320 | Get user domain groups\&.
|
|---|
| 321 | .RE
|
|---|
| 322 | .PP
|
|---|
| 323 | \-\-user\-sids \fIsid\fR
|
|---|
| 324 | .RS 4
|
|---|
| 325 | Get user group SIDs for user\&.
|
|---|
| 326 | .RE
|
|---|
| 327 | .PP
|
|---|
| 328 | \-U|\-\-uid\-to\-sid \fIuid\fR
|
|---|
| 329 | .RS 4
|
|---|
| 330 | Try to convert a UNIX user id to a Windows NT SID\&. If the uid specified does not refer to one within the idmap uid range then the operation will fail\&.
|
|---|
| 331 | .RE
|
|---|
| 332 | .PP
|
|---|
| 333 | \-\-verbose
|
|---|
| 334 | .RS 4
|
|---|
| 335 | Print additional information about the query results\&.
|
|---|
| 336 | .RE
|
|---|
| 337 | .PP
|
|---|
| 338 | \-Y|\-\-sid\-to\-gid \fIsid\fR
|
|---|
| 339 | .RS 4
|
|---|
| 340 | Convert a SID to a UNIX group id\&. If the SID does not correspond to a UNIX group mapped by
|
|---|
| 341 | \fBwinbindd\fR(8)
|
|---|
| 342 | then the operation will fail\&.
|
|---|
| 343 | .RE
|
|---|
| 344 | .PP
|
|---|
| 345 | \-\-remove\-uid\-mapping uid,sid
|
|---|
| 346 | .RS 4
|
|---|
| 347 | Remove an existing uid to sid mapping entry from the IDmap backend\&.
|
|---|
| 348 | .RE
|
|---|
| 349 | .PP
|
|---|
| 350 | \-\-remove\-gid\-mapping gid,sid
|
|---|
| 351 | .RS 4
|
|---|
| 352 | Remove an existing gid to sid mapping entry from the IDmap backend\&.
|
|---|
| 353 | .RE
|
|---|
| 354 | .PP
|
|---|
| 355 | \-\-set\-uid\-mapping uid,sid
|
|---|
| 356 | .RS 4
|
|---|
| 357 | Create a new or modify an existing uid to sid mapping in the IDmap backend\&.
|
|---|
| 358 | .RE
|
|---|
| 359 | .PP
|
|---|
| 360 | \-\-set\-gid\-mapping gid,sid
|
|---|
| 361 | .RS 4
|
|---|
| 362 | Create a new or modify an existing gid to sid mapping in the IDmap backend\&.
|
|---|
| 363 | .RE
|
|---|
| 364 | .PP
|
|---|
| 365 | \-V|\-\-version
|
|---|
| 366 | .RS 4
|
|---|
| 367 | Prints the program version number\&.
|
|---|
| 368 | .RE
|
|---|
| 369 | .PP
|
|---|
| 370 | \-h|\-\-help
|
|---|
| 371 | .RS 4
|
|---|
| 372 | Print a summary of command line options\&.
|
|---|
| 373 | .RE
|
|---|
| 374 | .SH "EXIT STATUS"
|
|---|
| 375 | .PP
|
|---|
| 376 | The wbinfo program returns 0 if the operation succeeded, or 1 if the operation failed\&. If the
|
|---|
| 377 | \fBwinbindd\fR(8)
|
|---|
| 378 | daemon is not working
|
|---|
| 379 | wbinfo
|
|---|
| 380 | will always return failure\&.
|
|---|
| 381 | .SH "VERSION"
|
|---|
| 382 | .PP
|
|---|
| 383 | This man page is correct for version 3 of the Samba suite\&.
|
|---|
| 384 | .SH "SEE ALSO"
|
|---|
| 385 | .PP
|
|---|
| 386 | \fBwinbindd\fR(8)
|
|---|
| 387 | and
|
|---|
| 388 | \fBntlm_auth\fR(1)
|
|---|
| 389 | .SH "AUTHOR"
|
|---|
| 390 | .PP
|
|---|
| 391 | The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
|
|---|
| 392 | .PP
|
|---|
| 393 | wbinfo
|
|---|
| 394 | and
|
|---|
| 395 | winbindd
|
|---|
| 396 | were written by Tim Potter\&.
|
|---|
| 397 | .PP
|
|---|
| 398 | The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&.
|
|---|