Changeset 429 for trunk/server/docs/manpages/winbindd.8
- Timestamp:
- Apr 9, 2010, 3:51:41 PM (15 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
-
Property svn:mergeinfo
set to
/vendor/3.5.2 merged eligible /vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
trunk/server/docs/manpages/winbindd.8
r414 r429 1 '\" t2 1 .\" Title: winbindd 3 2 .\" Author: [see the "AUTHOR" section] 4 .\" Generator: DocBook XSL Stylesheets v1.7 5.2<http://docbook.sf.net/>5 .\" Date: 0 2/19/20103 .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/> 4 .\" Date: 03/30/2010 6 5 .\" Manual: System Administration tools 7 6 .\" Source: Samba 3.5 8 7 .\" Language: English 9 8 .\" 10 .TH "WINBINDD" "8" "02/19/2010" "Samba 3\&.5" "System Administration tools" 9 .TH "WINBINDD" "8" "03/30/2010" "Samba 3\&.5" "System Administration tools" 10 .\" ----------------------------------------------------------------- 11 .\" * (re)Define some macros 12 .\" ----------------------------------------------------------------- 13 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 14 .\" toupper - uppercase a string (locale-aware) 15 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 16 .de toupper 17 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ 18 \\$* 19 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz 20 .. 21 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 22 .\" SH-xref - format a cross-reference to an SH section 23 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24 .de SH-xref 25 .ie n \{\ 26 .\} 27 .toupper \\$* 28 .el \{\ 29 \\$* 30 .\} 31 .. 32 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 33 .\" SH - level-one heading that works better for non-TTY output 34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 35 .de1 SH 36 .\" put an extra blank line of space above the head in non-TTY output 37 .if t \{\ 38 .sp 1 39 .\} 40 .sp \\n[PD]u 41 .nr an-level 1 42 .set-an-margin 43 .nr an-prevailing-indent \\n[IN] 44 .fi 45 .in \\n[an-margin]u 46 .ti 0 47 .HTML-TAG ".NH \\n[an-level]" 48 .it 1 an-trap 49 .nr an-no-space-flag 1 50 .nr an-break-flag 1 51 \." make the size of the head bigger 52 .ps +3 53 .ft B 54 .ne (2v + 1u) 55 .ie n \{\ 56 .\" if n (TTY output), use uppercase 57 .toupper \\$* 58 .\} 59 .el \{\ 60 .nr an-break-flag 0 61 .\" if not n (not TTY), use normal case (not uppercase) 62 \\$1 63 .in \\n[an-margin]u 64 .ti 0 65 .\" if not n (not TTY), put a border/line under subheading 66 .sp -.6 67 \l'\n(.lu' 68 .\} 69 .. 70 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 .\" SS - level-two heading that works better for non-TTY output 72 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 .de1 SS 74 .sp \\n[PD]u 75 .nr an-level 1 76 .set-an-margin 77 .nr an-prevailing-indent \\n[IN] 78 .fi 79 .in \\n[IN]u 80 .ti \\n[SN]u 81 .it 1 an-trap 82 .nr an-no-space-flag 1 83 .nr an-break-flag 1 84 .ps \\n[PS-SS]u 85 \." make the size of the head bigger 86 .ps +2 87 .ft B 88 .ne (2v + 1u) 89 .if \\n[.$] \&\\$* 90 .. 91 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 92 .\" BB/BE - put background/screen (filled box) around block of text 93 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 94 .de BB 95 .if t \{\ 96 .sp -.5 97 .br 98 .in +2n 99 .ll -2n 100 .gcolor red 101 .di BX 102 .\} 103 .. 104 .de EB 105 .if t \{\ 106 .if "\\$2"adjust-for-leading-newline" \{\ 107 .sp -1 108 .\} 109 .br 110 .di 111 .in 112 .ll 113 .gcolor 114 .nr BW \\n(.lu-\\n(.i 115 .nr BH \\n(dn+.5v 116 .ne \\n(BHu+.5v 117 .ie "\\$2"adjust-for-leading-newline" \{\ 118 \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] 119 .\} 120 .el \{\ 121 \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] 122 .\} 123 .in 0 124 .sp -.5v 125 .nf 126 .BX 127 .in 128 .sp .5v 129 .fi 130 .\} 131 .. 132 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 133 .\" BM/EM - put colored marker in margin next to block of text 134 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 135 .de BM 136 .if t \{\ 137 .br 138 .ll -2n 139 .gcolor red 140 .di BX 141 .\} 142 .. 143 .de EM 144 .if t \{\ 145 .br 146 .di 147 .ll 148 .gcolor 149 .nr BH \\n(dn 150 .ne \\n(BHu 151 \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] 152 .in 0 153 .nf 154 .BX 155 .in 156 .fi 157 .\} 158 .. 11 159 .\" ----------------------------------------------------------------- 12 160 .\" * set default formatting … … 19 167 .\" * MAIN CONTENT STARTS HERE * 20 168 .\" ----------------------------------------------------------------- 21 .SH "N AME"169 .SH "Name" 22 170 winbindd \- Name Service Switch daemon for resolving names from NT servers 23 .SH "SYNOPSIS" 171 .SH "Synopsis" 172 .fam C 24 173 .HP \w'\ 'u 25 winbindd [\-D] [\-F] [\-S] [\-i] [\-Y] [\-d\ <debug\ level>] [\-s\ <smb\ config\ file>] [\-n] 174 \FCwinbindd\F[] [\-D] [\-F] [\-S] [\-i] [\-Y] [\-d\ <debug\ level>] [\-s\ <smb\ config\ file>] [\-n] 175 .fam 26 176 .SH "DESCRIPTION" 27 177 .PP … … 30 180 suite\&. 31 181 .PP 32 winbindd 182 \FCwinbindd\F[] 33 183 is a daemon that provides a number of services to the Name Service Switch capability found in most modern C libraries, to arbitrary applications via PAM and 34 ntlm_auth 184 \FCntlm_auth\F[] 35 185 and to Samba itself\&. 36 186 .PP 37 187 Even if winbind is not used for nsswitch, it still provides a service to 38 smbd,39 ntlm_auth 188 \FCsmbd\F[], 189 \FCntlm_auth\F[] 40 190 and the 41 pam_winbind\&.so 191 \FCpam_winbind\&.so\F[] 42 192 PAM module, by managing connections to domain controllers\&. In this configuraiton the 43 193 \m[blue]\fBidmap uid\fR\m[] … … 47 197 .PP 48 198 The Name Service Switch allows user and system information to be obtained from different databases services such as NIS or DNS\&. The exact behaviour can be configured through the 49 /etc/nsswitch\&.conf 199 \FC/etc/nsswitch\&.conf\F[] 50 200 file\&. Users and groups are allocated as they are resolved to a range of user and group ids specified by the administrator of the Samba system\&. 51 201 .PP 52 202 The service provided by 53 winbindd 203 \FCwinbindd\F[] 54 204 is called `winbind\' and can be used to resolve user and group information from a Windows NT server\&. The service can also provide authentication services via an associated PAM module\&. 55 205 .PP 56 206 The 57 pam_winbind 207 \FCpam_winbind\F[] 58 208 module supports the 59 209 \fIauth\fR, … … 64 214 \fIaccount\fR 65 215 module simply performs a getpwnam() to verify that the system can obtain a uid for the user, as the domain controller has already performed access control\&. If the 66 libnss_winbind 216 \FClibnss_winbind\F[] 67 217 library has been correctly installed, or an alternate source of names configured, this should always succeed\&. 68 218 .PP … … 72 222 .RS 4 73 223 If specified, this parameter causes the server to operate as a daemon\&. That is, it detaches itself and runs in the background on the appropriate port\&. This switch is assumed if 74 winbindd 224 \FCwinbindd\F[] 75 225 is executed on the command line of a shell\&. 76 226 .RE … … 79 229 .RS 4 80 230 This feature is only available on IRIX\&. User information traditionally stored in the 81 hosts(5) 231 \FChosts(5)\F[] 82 232 file and used by 83 gethostbyname(3) 233 \FCgethostbyname(3)\F[] 84 234 functions\&. Names are resolved through the WINS server or by broadcast\&. 85 235 .RE … … 88 238 .RS 4 89 239 User information traditionally stored in the 90 passwd(5) 240 \FCpasswd(5)\F[] 91 241 file and used by 92 getpwent(3) 242 \FCgetpwent(3)\F[] 93 243 functions\&. 94 244 .RE … … 97 247 .RS 4 98 248 Group information traditionally stored in the 99 group(5) 249 \FCgroup(5)\F[] 100 250 file and used by 101 getgrent(3) 251 \FCgetgrent(3)\F[] 102 252 functions\&. 103 253 .RE 104 254 .PP 105 255 For example, the following simple configuration in the 106 /etc/nsswitch\&.conf 256 \FC/etc/nsswitch\&.conf\F[] 107 257 file can be used to initially resolve user and group information from 108 /etc/passwd 258 \FC/etc/passwd \F[] 109 259 and 110 /etc/group 260 \FC/etc/group\F[] 111 261 and then from the Windows NT server\&. 112 262 .sp … … 114 264 .RS 4 115 265 .\} 266 .fam C 267 .ps -1 116 268 .nf 269 .if t \{\ 270 .sp -1 271 .\} 272 .BB lightgray adjust-for-leading-newline 273 .sp -1 274 117 275 passwd: files winbind 118 276 group: files winbind … … 122 280 hosts: files dns wins 123 281 282 .EB lightgray adjust-for-leading-newline 283 .if t \{\ 284 .sp 1 285 .\} 124 286 .fi 287 .fam 288 .ps +1 125 289 .if n \{\ 126 290 .RE … … 128 292 .PP 129 293 The following simple configuration in the 130 /etc/nsswitch\&.conf 294 \FC/etc/nsswitch\&.conf\F[] 131 295 file can be used to initially resolve hostnames from 132 /etc/hosts 296 \FC/etc/hosts\F[] 133 297 and then from the WINS server\&. 134 298 .sp … … 136 300 .RS 4 137 301 .\} 302 .fam C 303 .ps -1 138 304 .nf 305 .if t \{\ 306 .sp -1 307 .\} 308 .BB lightgray adjust-for-leading-newline 309 .sp -1 310 139 311 hosts: files wins 312 .EB lightgray adjust-for-leading-newline 313 .if t \{\ 314 .sp 1 315 .\} 140 316 .fi 317 .fam 318 .ps +1 141 319 .if n \{\ 142 320 .RE … … 147 325 .RS 4 148 326 If specified, this parameter causes the main 149 winbindd 327 \FCwinbindd\F[] 150 328 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 151 winbindd 329 \FCwinbindd\F[] 152 330 under process supervisors such as 153 supervise 331 \FCsupervise\F[] 154 332 and 155 svscan 333 \FCsvscan\F[] 156 334 from Daniel J\&. Bernstein\'s 157 daemontools 335 \FCdaemontools\F[] 158 336 package, or the AIX process monitor\&. 159 337 .RE … … 162 340 .RS 4 163 341 If specified, this parameter causes 164 winbindd 342 \FCwinbindd\F[] 165 343 to log to standard output rather than a file\&. 166 344 .RE … … 178 356 \m[blue]\fB\%smb.conf.5.html#\fR\m[] 179 357 parameter in the 180 smb\&.conf 358 \FCsmb\&.conf\F[] 181 359 file\&. 182 360 .RE … … 190 368 .RS 4 191 369 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 192 smb\&.conf 370 \FCsmb\&.conf\F[] 193 371 for more information\&. The default configuration file name is determined at compile time\&. 194 372 .RE … … 209 387 .RS 4 210 388 Tells 211 winbindd 389 \FCwinbindd\F[] 212 390 to not become a daemon and detach from the current terminal\&. This option is used by developers when interactive debugging of 213 winbindd 391 \FCwinbindd\F[] 214 392 is required\&. 215 winbindd 393 \FCwinbindd\F[] 216 394 also logs to standard output, as if the 217 \ -S395 \FC\-S\F[] 218 396 parameter had been given\&. 219 397 .RE … … 231 409 .PP 232 410 Users and groups on a Windows NT server are assigned a security id (SID) which is globally unique when the user or group is created\&. To convert the Windows NT user or group into a unix user or group, a mapping between SIDs and unix user and group ids is required\&. This is one of the jobs that 233 winbindd 411 \FC winbindd\F[] 234 412 performs\&. 235 413 .PP … … 240 418 .PP 241 419 Configuration of the 242 winbindd 420 \FCwinbindd\F[] 243 421 daemon is done through configuration parameters in the 244 422 \fBsmb.conf\fR(5) … … 381 559 .PP 382 560 In 383 /etc/nsswitch\&.conf 561 \FC/etc/nsswitch\&.conf\F[] 384 562 put the following: 385 563 .sp … … 387 565 .RS 4 388 566 .\} 567 .fam C 568 .ps -1 389 569 .nf 570 .if t \{\ 571 .sp -1 572 .\} 573 .BB lightgray adjust-for-leading-newline 574 .sp -1 575 390 576 passwd: files winbind 391 577 group: files winbind 578 .EB lightgray adjust-for-leading-newline 579 .if t \{\ 580 .sp 1 581 .\} 392 582 .fi 583 .fam 584 .ps +1 393 585 .if n \{\ 394 586 .RE … … 396 588 .PP 397 589 In 398 /etc/pam\&.d/* 590 \FC/etc/pam\&.d/*\F[] 399 591 replace the 400 592 \fI auth\fR … … 404 596 .RS 4 405 597 .\} 598 .fam C 599 .ps -1 406 600 .nf 601 .if t \{\ 602 .sp -1 603 .\} 604 .BB lightgray adjust-for-leading-newline 605 .sp -1 606 407 607 auth required /lib/security/pam_securetty\&.so 408 608 auth required /lib/security/pam_nologin\&.so … … 410 610 auth required /lib/security/pam_unix\&.so \e 411 611 use_first_pass shadow nullok 612 .EB lightgray adjust-for-leading-newline 613 .if t \{\ 614 .sp 1 615 .\} 412 616 .fi 413 .if n \{\ 414 .RE 415 .\} 416 .sp 417 .if n \{\ 418 .sp 419 .\} 420 .RS 4 617 .fam 618 .ps +1 619 .if n \{\ 620 .RE 621 .\} 622 .sp 623 .if n \{\ 624 .sp 625 .\} 626 .RS 4 627 .BM yellow 421 628 .it 1 an-trap 422 629 .nr an-no-space-flag 1 … … 430 637 The PAM module pam_unix has recently replaced the module pam_pwdb\&. Some Linux systems use the module pam_unix2 in place of pam_unix\&. 431 638 .sp .5v 639 .EM yellow 432 640 .RE 433 641 .PP … … 440 648 Now replace the account lines with this: 441 649 .PP 442 account required /lib/security/pam_winbind\&.so 650 \FCaccount required /lib/security/pam_winbind\&.so \F[] 443 651 .PP 444 652 The next step is to join the domain\&. To do that use the 445 net 653 \FCnet\F[] 446 654 program like this: 447 655 .PP 448 net join \-S PDC \-U Administrator 656 \FCnet join \-S PDC \-U Administrator\F[] 449 657 .PP 450 658 The username after the … … 453 661 .PP 454 662 Next copy 455 libnss_winbind\&.so 663 \FClibnss_winbind\&.so\F[] 456 664 to 457 /lib 665 \FC/lib\F[] 458 666 and 459 pam_winbind\&.so 667 \FCpam_winbind\&.so \F[] 460 668 to 461 /lib/security\&. A symbolic link needs to be made from462 /lib/libnss_winbind\&.so 669 \FC/lib/security\F[]\&. A symbolic link needs to be made from 670 \FC/lib/libnss_winbind\&.so\F[] 463 671 to 464 /lib/libnss_winbind\&.so\&.2\&. If you are using an older version of glibc then the target of the link should be465 /lib/libnss_winbind\&.so\&.1\&.672 \FC/lib/libnss_winbind\&.so\&.2\F[]\&. If you are using an older version of glibc then the target of the link should be 673 \FC/lib/libnss_winbind\&.so\&.1\F[]\&. 466 674 .PP 467 675 Finally, setup a … … 472 680 .RS 4 473 681 .\} 682 .fam C 683 .ps -1 474 684 .nf 685 .if t \{\ 686 .sp -1 687 .\} 688 .BB lightgray adjust-for-leading-newline 689 .sp -1 690 475 691 [global] 476 692 winbind separator = + … … 483 699 security = domain 484 700 password server = * 701 .EB lightgray adjust-for-leading-newline 702 .if t \{\ 703 .sp 1 704 .\} 485 705 .fi 706 .fam 707 .ps +1 486 708 .if n \{\ 487 709 .RE … … 489 711 .PP 490 712 Now start winbindd and you should find that your user and group database is expanded to include your NT users and groups, and that you can login to your unix box as a domain user, using the DOMAIN+user syntax for the username\&. You may wish to use the commands 491 getent passwd 713 \FCgetent passwd\F[] 492 714 and 493 getent group 715 \FCgetent group \F[] 494 716 to confirm the correct operation of winbindd\&. 495 717 .SH "NOTES" 496 718 .PP 497 719 The following notes are useful when configuring and running 498 winbindd:720 \FCwinbindd\F[]: 499 721 .PP 500 722 \fBnmbd\fR(8) 501 723 must be running on the local machine for 502 winbindd 724 \FCwinbindd\F[] 503 725 to work\&. 504 726 .PP … … 506 728 .PP 507 729 If more than one UNIX machine is running 508 winbindd, then in general the user and groups ids allocated by winbindd will not be the same\&. The user and group ids will only be valid for the local machine, unless a shared730 \FCwinbindd\F[], then in general the user and groups ids allocated by winbindd will not be the same\&. The user and group ids will only be valid for the local machine, unless a shared 509 731 \m[blue]\fBidmap backend\fR\m[] 510 732 is configured\&. … … 514 736 .PP 515 737 The following signals can be used to manipulate the 516 winbindd 738 \FCwinbindd\F[] 517 739 daemon\&. 518 740 .PP … … 527 749 .RS 4 528 750 The SIGUSR2 signal will cause 529 winbindd 751 \FC winbindd\F[] 530 752 to write status information to the winbind log file\&. 531 753 .sp … … 534 756 .SH "FILES" 535 757 .PP 536 /etc/nsswitch\&.conf(5) 758 \FC/etc/nsswitch\&.conf(5)\F[] 537 759 .RS 4 538 760 Name service switch configuration file\&. … … 542 764 .RS 4 543 765 The UNIX pipe over which clients communicate with the 544 winbindd 766 \FCwinbindd\F[] 545 767 program\&. For security reasons, the winbind client will only attempt to connect to the winbindd daemon if both the 546 /tmp/\&.winbindd 768 \FC/tmp/\&.winbindd\F[] 547 769 directory and 548 /tmp/\&.winbindd/pipe 770 \FC/tmp/\&.winbindd/pipe\F[] 549 771 file are owned by root\&. 550 772 .RE … … 553 775 .RS 4 554 776 The UNIX pipe over which \'privileged\' clients communicate with the 555 winbindd 777 \FCwinbindd\F[] 556 778 program\&. For security reasons, access to some winbindd functions \- like those needed by the 557 ntlm_auth 779 \FCntlm_auth\F[] 558 780 utility \- is restricted\&. By default, only users in the \'root\' group will get this access, however the administrator may change the group permissions on $LOCKDIR/winbindd_privileged to allow programs like \'squid\' to use ntlm_auth\&. Note that the winbind client will only attempt to connect to the winbindd daemon if both the 559 $LOCKDIR/winbindd_privileged 781 \FC$LOCKDIR/winbindd_privileged\F[] 560 782 directory and 561 $LOCKDIR/winbindd_privileged/pipe 783 \FC$LOCKDIR/winbindd_privileged/pipe\F[] 562 784 file are owned by root\&. 563 785 .RE … … 573 795 \fI\-\-with\-lockdir\fR 574 796 option\&. This directory is by default 575 /usr/local/samba/var/locks\&.797 \FC/usr/local/samba/var/locks \F[]\&. 576 798 .RE 577 799 .PP … … 585 807 .SH "SEE ALSO" 586 808 .PP 587 nsswitch\&.conf(5),809 \FCnsswitch\&.conf(5)\F[], 588 810 \fBsamba\fR(7), 589 811 \fBwbinfo\fR(1), … … 595 817 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\&. 596 818 .PP 597 wbinfo 819 \FCwbinfo\F[] 598 820 and 599 winbindd 821 \FCwinbindd\F[] 600 822 were written by Tim Potter\&. 601 823 .PP
Note:
See TracChangeset
for help on using the changeset viewer.