Changeset 286 for branches/samba-3.0/docs/manpages/pdbedit.8
- Timestamp:
- Jun 24, 2009, 5:09:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/docs/manpages/pdbedit.8
r158 r286 1 1 .\" Title: pdbedit 2 .\" Author: 3 .\" Generator: DocBook XSL Stylesheets v1.7 3.2<http://docbook.sf.net/>4 .\" Date: 0 8/25/20082 .\" Author: [see the "AUTHOR" section] 3 .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/> 4 .\" Date: 06/22/2009 5 5 .\" Manual: System Administration tools 6 6 .\" Source: Samba 3.0 7 .\" Language: English 7 8 .\" 8 .TH "PDBEDIT" "8" "08/25/2008" "Samba 3\.0" "System Administration tools" 9 .TH "PDBEDIT" "8" "06/22/2009" "Samba 3\&.0" "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 .. 159 .\" ----------------------------------------------------------------- 160 .\" * set default formatting 161 .\" ----------------------------------------------------------------- 9 162 .\" disable hyphenation 10 163 .nh 11 164 .\" disable justification (adjust text to left margin only) 12 165 .ad l 13 .SH "NAME" 14 pdbedit - manage the SAM database (Database of Samba Users) 15 .SH "SYNOPSIS" 16 .HP 1 17 pdbedit [\-L] [\-v] [\-w] [\-u\ username] [\-f\ fullname] [\-h\ homedir] [\-D\ drive] [\-S\ script] [\-p\ profile] [\-a] [\-t,\ \-\-password\-from\-stdin] [\-m] [\-r] [\-x] [\-i\ passdb\-backend] [\-e\ passdb\-backend] [\-b\ passdb\-backend] [\-g] [\-d\ debuglevel] [\-s\ configfile] [\-P\ account\-policy] [\-C\ value] [\-c\ account\-control] [\-y] 166 .\" ----------------------------------------------------------------- 167 .\" * MAIN CONTENT STARTS HERE * 168 .\" ----------------------------------------------------------------- 169 .SH "Name" 170 pdbedit \- manage the SAM database (Database of Samba Users) 171 .SH "Synopsis" 172 .fam C 173 .HP \w'\ 'u 174 \FCpdbedit\F[] [\-L] [\-v] [\-w] [\-u\ username] [\-f\ fullname] [\-h\ homedir] [\-D\ drive] [\-S\ script] [\-p\ profile] [\-a] [\-t,\ \-\-password\-from\-stdin] [\-m] [\-r] [\-x] [\-i\ passdb\-backend] [\-e\ passdb\-backend] [\-b\ passdb\-backend] [\-g] [\-d\ debuglevel] [\-s\ configfile] [\-P\ account\-policy] [\-C\ value] [\-c\ account\-control] [\-y] 175 .fam 18 176 .SH "DESCRIPTION" 19 177 .PP 20 178 This tool is part of the 21 179 \fBsamba\fR(7) 22 suite\ .23 .PP 24 The pdbedit program is used to manage the users accounts stored in the sam database and can only be run by root\ .25 .PP 26 The pdbedit tool uses the passdb modular interface and is independent from the kind of users database used (currently there are smbpasswd, ldap, nis+ and tdb based and more can be added without changing the tool)\ .27 .PP 28 There are five main ways to use pdbedit: adding a user account, removing a user account, modifing a user account, listing user accounts, importing users accounts\ .180 suite\&. 181 .PP 182 The pdbedit program is used to manage the users accounts stored in the sam database and can only be run by root\&. 183 .PP 184 The pdbedit tool uses the passdb modular interface and is independent from the kind of users database used (currently there are smbpasswd, ldap, nis+ and tdb based and more can be added without changing the tool)\&. 185 .PP 186 There are five main ways to use pdbedit: adding a user account, removing a user account, modifing a user account, listing user accounts, importing users accounts\&. 29 187 .SH "OPTIONS" 30 188 .PP 31 189 \-L 32 190 .RS 4 33 This option lists all the user accounts present in the users database\. This option prints a list of user/uid pairs separated by the \':\' character\. 34 .sp 35 Example: 36 pdbedit \-L 37 .sp 38 .sp 39 .RS 4 191 This option lists all the user accounts present in the users database\&. This option prints a list of user/uid pairs separated by the \':\' character\&. 192 .sp 193 Example: 194 \FCpdbedit \-L\F[] 195 .sp 196 .if n \{\ 197 .RS 4 198 .\} 199 .fam C 200 .ps -1 40 201 .nf 202 .if t \{\ 203 .sp -1 204 .\} 205 .BB lightgray adjust-for-leading-newline 206 .sp -1 207 41 208 sorce:500:Simo Sorce 42 209 samba:45:Test User 43 .fi 44 .RE 210 .EB lightgray adjust-for-leading-newline 211 .if t \{\ 212 .sp 1 213 .\} 214 .fi 215 .fam 216 .ps +1 217 .if n \{\ 218 .RE 219 .\} 45 220 .RE 46 221 .PP 47 222 \-v 48 223 .RS 4 49 This option enables the verbose listing format\. It causes pdbedit to list the users in the database, printing out the account fields in a descriptive format\. 50 .sp 51 Example: 52 pdbedit \-L \-v 53 .sp 54 .sp 55 .RS 4 224 This option enables the verbose listing format\&. It causes pdbedit to list the users in the database, printing out the account fields in a descriptive format\&. 225 .sp 226 Example: 227 \FCpdbedit \-L \-v\F[] 228 .sp 229 .if n \{\ 230 .RS 4 231 .\} 232 .fam C 233 .ps -1 56 234 .nf 235 .if t \{\ 236 .sp -1 237 .\} 238 .BB lightgray adjust-for-leading-newline 239 .sp -1 240 57 241 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\- 58 242 username: sorce … … 62 246 Home Directory: \e\eBERSERKER\esorce 63 247 HomeDir Drive: H: 64 Logon Script: \e\eBERSERKER\enetlogon\esorce\ .bat248 Logon Script: \e\eBERSERKER\enetlogon\esorce\&.bat 65 249 Profile Path: \e\eBERSERKER\eprofile 66 250 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\- … … 73 257 Logon Script: 74 258 Profile Path: \e\eBERSERKER\eprofile 75 .fi 76 .RE 259 .EB lightgray adjust-for-leading-newline 260 .if t \{\ 261 .sp 1 262 .\} 263 .fi 264 .fam 265 .ps +1 266 .if n \{\ 267 .RE 268 .\} 77 269 .RE 78 270 .PP 79 271 \-w 80 272 .RS 4 81 This option sets the "smbpasswd" listing format\ . It will make pdbedit list the users in the database, printing out the account fields in a format compatible with the82 \ fIsmbpasswd\fR83 file format\ . (see the273 This option sets the "smbpasswd" listing format\&. It will make pdbedit list the users in the database, printing out the account fields in a format compatible with the 274 \FCsmbpasswd\F[] 275 file format\&. (see the 84 276 \fBsmbpasswd\fR(5) 85 277 for details) 86 278 .sp 87 279 Example: 88 pdbedit \-L \-w 89 .sp 90 .RS 4 280 \FCpdbedit \-L \-w\F[] 281 .sp 282 .if n \{\ 283 .RS 4 284 .\} 285 .fam C 286 .ps -1 91 287 .nf 288 .if t \{\ 289 .sp -1 290 .\} 291 .BB lightgray adjust-for-leading-newline 292 .sp -1 293 92 294 sorce:500:508818B733CE64BEAAD3B435B51404EE: 93 295 D2A2418EFC466A8A0F6B1DBB5C3DB80C: … … 96 298 BC281CE3F53B6A5146629CD4751D3490: 97 299 [UX ]:LCT\-3BFA1E8D: 98 .fi 99 .RE 300 .EB lightgray adjust-for-leading-newline 301 .if t \{\ 302 .sp 1 303 .\} 304 .fi 305 .fam 306 .ps +1 307 .if n \{\ 308 .RE 309 .\} 100 310 .RE 101 311 .PP 102 312 \-u username 103 313 .RS 4 104 This option specifies the username to be used for the operation requested (listing, adding, removing)\ . It is314 This option specifies the username to be used for the operation requested (listing, adding, removing)\&. It is 105 315 \fIrequired\fR 106 316 in add, remove and modify operations and 107 317 \fIoptional\fR 108 in list operations\ .318 in list operations\&. 109 319 .RE 110 320 .PP 111 321 \-f fullname 112 322 .RS 4 113 This option can be used while adding or modifing a user account\ . It will specify the user\'s full name\.114 .sp 115 Example: 116 \ -f "Simo Sorce"323 This option can be used while adding or modifing a user account\&. It will specify the user\'s full name\&. 324 .sp 325 Example: 326 \FC\-f "Simo Sorce"\F[] 117 327 .RE 118 328 .PP 119 329 \-h homedir 120 330 .RS 4 121 This option can be used while adding or modifing a user account\ . It will specify the user\'s home directory network path\.122 .sp 123 Example: 124 \ -h "\e\e\e\eBERSERKER\e\esorce"331 This option can be used while adding or modifing a user account\&. It will specify the user\'s home directory network path\&. 332 .sp 333 Example: 334 \FC\-h "\e\e\e\eBERSERKER\e\esorce"\F[] 125 335 .RE 126 336 .PP 127 337 \-D drive 128 338 .RS 4 129 This option can be used while adding or modifing a user account\ . It will specify the windows drive letter to be used to map the home directory\.130 .sp 131 Example: 132 \ -D "H:"339 This option can be used while adding or modifing a user account\&. It will specify the windows drive letter to be used to map the home directory\&. 340 .sp 341 Example: 342 \FC\-D "H:"\F[] 133 343 .RE 134 344 .PP 135 345 \-S script 136 346 .RS 4 137 This option can be used while adding or modifing a user account\ . It will specify the user\'s logon script path\.138 .sp 139 Example: 140 \ -S "\e\e\e\eBERSERKER\e\enetlogon\e\esorce\.bat"347 This option can be used while adding or modifing a user account\&. It will specify the user\'s logon script path\&. 348 .sp 349 Example: 350 \FC\-S "\e\e\e\eBERSERKER\e\enetlogon\e\esorce\&.bat"\F[] 141 351 .RE 142 352 .PP 143 353 \-p profile 144 354 .RS 4 145 This option can be used while adding or modifing a user account\ . It will specify the user\'s profile directory\.146 .sp 147 Example: 148 \ -p "\e\e\e\eBERSERKER\e\enetlogon"355 This option can be used while adding or modifing a user account\&. It will specify the user\'s profile directory\&. 356 .sp 357 Example: 358 \FC\-p "\e\e\e\eBERSERKER\e\enetlogon"\F[] 149 359 .RE 150 360 .PP 151 361 \-G SID|rid 152 362 .RS 4 153 This option can be used while adding or modifying a user account\ . It will specify the users\' new primary group SID (Security Identifier) or rid\.154 .sp 155 Example: 156 \ -G S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-1201363 This option can be used while adding or modifying a user account\&. It will specify the users\' new primary group SID (Security Identifier) or rid\&. 364 .sp 365 Example: 366 \FC\-G S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-1201\F[] 157 367 .RE 158 368 .PP 159 369 \-U SID|rid 160 370 .RS 4 161 This option can be used while adding or modifying a user account\ . It will specify the users\' new SID (Security Identifier) or rid\.162 .sp 163 Example: 164 \ -U S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-5004371 This option can be used while adding or modifying a user account\&. It will specify the users\' new SID (Security Identifier) or rid\&. 372 .sp 373 Example: 374 \FC\-U S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-5004\F[] 165 375 .RE 166 376 .PP 167 377 \-c account\-control 168 378 .RS 4 169 This option can be used while adding or modifying a user account\ . It will specify the users\' account control property\. Possible flags are listed below\.379 This option can be used while adding or modifying a user account\&. It will specify the users\' account control property\&. Possible flags are listed below\&. 170 380 .sp 171 381 … … 294 504 .sp 295 505 Example: 296 \ -c "[X ]"506 \FC\-c "[X ]"\F[] 297 507 .RE 298 508 .PP 299 509 \-a 300 510 .RS 4 301 This option is used to add a user into the database\. This command needs a user name specified with the \-u switch\. When adding a new user, pdbedit will also ask for the password to be used\. 302 .sp 303 Example: 304 pdbedit \-a \-u sorce 305 .sp 306 .RS 4 511 This option is used to add a user into the database\&. This command needs a user name specified with the \-u switch\&. When adding a new user, pdbedit will also ask for the password to be used\&. 512 .sp 513 Example: 514 \FCpdbedit \-a \-u sorce\F[] 515 .sp 516 .if n \{\ 517 .RS 4 518 .\} 519 .fam C 520 .ps -1 307 521 .nf 522 .BB lightgray 308 523 new password: 309 524 retype new password 310 .fi 311 .RE 312 .sp 313 .sp 525 .EB lightgray 526 .fi 527 .fam 528 .ps +1 529 .if n \{\ 530 .RE 531 .\} 532 .sp 533 .if n \{\ 534 .sp 535 .\} 536 .RS 4 537 .BM yellow 314 538 .it 1 an-trap 315 539 .nr an-no-space-flag 1 316 540 .nr an-break-flag 1 317 541 .br 318 Note 542 .ps +1 543 \fBNote\fR 544 .ps -1 545 .br 319 546 pdbedit does not call the unix password syncronisation script if 320 \ fIunix password sync\fR321 has been set\ . It only updates the data in the Samba user database\.547 \m[blue]\fBunix password sync\fR\m[] 548 has been set\&. It only updates the data in the Samba user database\&. 322 549 .sp 323 550 If you wish to add a user and synchronise the password that immediately, use 324 smbpasswd\'s551 \FCsmbpasswd\F[]\'s 325 552 \fB\-a\fR 326 option\. 553 option\&. 554 .sp .5v 555 .EM yellow 556 .RE 327 557 .RE 328 558 .PP … … 330 560 .RS 4 331 561 This option causes pdbedit to read the password from standard input, rather than from /dev/tty (like the 332 passwd(1) 333 program does)\ . The password has to be submitted twice and terminated by a newline each\.562 \FCpasswd(1)\F[] 563 program does)\&. The password has to be submitted twice and terminated by a newline each\&. 334 564 .RE 335 565 .PP 336 566 \-r 337 567 .RS 4 338 This option is used to modify an existing user in the database\ . This command needs a user name specified with the \-u switch\. Other options can be specified to modify the properties of the specified user\. This flag is kept for backwards compatibility, but it is no longer necessary to specify it\.568 This option is used to modify an existing user in the database\&. This command needs a user name specified with the \-u switch\&. Other options can be specified to modify the properties of the specified user\&. This flag is kept for backwards compatibility, but it is no longer necessary to specify it\&. 339 569 .RE 340 570 .PP … … 343 573 This option may only be used in conjunction with the 344 574 \fI\-a\fR 345 option\ . It will make pdbedit to add a machine trust account instead of a user account (\-u username will provide the machine name)\.346 .sp 347 Example: 348 pdbedit \-a \-m \-u w2k\-wks 575 option\&. It will make pdbedit to add a machine trust account instead of a user account (\-u username will provide the machine name)\&. 576 .sp 577 Example: 578 \FCpdbedit \-a \-m \-u w2k\-wks\F[] 349 579 .RE 350 580 .PP 351 581 \-x 352 582 .RS 4 353 This option causes pdbedit to delete an account from the database\ . It needs a username specified with the \-u switch\.354 .sp 355 Example: 356 pdbedit \-x \-u bob 583 This option causes pdbedit to delete an account from the database\&. It needs a username specified with the \-u switch\&. 584 .sp 585 Example: 586 \FCpdbedit \-x \-u bob\F[] 357 587 .RE 358 588 .PP 359 589 \-i passdb\-backend 360 590 .RS 4 361 Use a different passdb backend to retrieve users than the one specified in smb\ .conf\. Can be used to import data into your local user database\.362 .sp 363 This option will ease migration from one passdb backend to another\ .364 .sp 365 Example: 366 pdbedit \-i smbpasswd:/etc/smbpasswd\.old 591 Use a different passdb backend to retrieve users than the one specified in smb\&.conf\&. Can be used to import data into your local user database\&. 592 .sp 593 This option will ease migration from one passdb backend to another\&. 594 .sp 595 Example: 596 \FCpdbedit \-i smbpasswd:/etc/smbpasswd\&.old \F[] 367 597 .RE 368 598 .PP 369 599 \-e passdb\-backend 370 600 .RS 4 371 Exports all currently available users to the specified password database backend\ .372 .sp 373 This option will ease migration from one passdb backend to another and will ease backing up\ .374 .sp 375 Example: 376 pdbedit \-e smbpasswd:/root/samba\-users\.backup 601 Exports all currently available users to the specified password database backend\&. 602 .sp 603 This option will ease migration from one passdb backend to another and will ease backing up\&. 604 .sp 605 Example: 606 \FCpdbedit \-e smbpasswd:/root/samba\-users\&.backup\F[] 377 607 .RE 378 608 .PP … … 382 612 \fI\-g\fR, then 383 613 \fI\-i in\-backend \-e out\-backend\fR 384 applies to the group mapping instead of the user database\ .385 .sp 386 This option will ease migration from one passdb backend to another and will ease backing up\ .614 applies to the group mapping instead of the user database\&. 615 .sp 616 This option will ease migration from one passdb backend to another and will ease backing up\&. 387 617 .RE 388 618 .PP 389 619 \-b passdb\-backend 390 620 .RS 4 391 Use a different default passdb backend\ .392 .sp 393 Example: 394 pdbedit \-b xml:/root/pdb\-backup\.xml \-l 621 Use a different default passdb backend\&. 622 .sp 623 Example: 624 \FCpdbedit \-b xml:/root/pdb\-backup\&.xml \-l\F[] 395 625 .RE 396 626 .PP … … 399 629 Display an account policy 400 630 .sp 401 Valid policies are: minimum password age, reset count minutes, disconnect time, user must logon to change password, password history, lockout duration, min password length, maximum password age and bad lockout attempt\. 402 .sp 403 Example: 404 pdbedit \-P "bad lockout attempt" 405 .sp 406 .sp 407 .RS 4 631 Valid policies are: minimum password age, reset count minutes, disconnect time, user must logon to change password, password history, lockout duration, min password length, maximum password age and bad lockout attempt\&. 632 .sp 633 Example: 634 \FCpdbedit \-P "bad lockout attempt"\F[] 635 .sp 636 .if n \{\ 637 .RS 4 638 .\} 639 .fam C 640 .ps -1 408 641 .nf 642 .if t \{\ 643 .sp -1 644 .\} 645 .BB lightgray adjust-for-leading-newline 646 .sp -1 647 409 648 account policy value for bad lockout attempt is 0 410 .fi 411 .RE 649 .EB lightgray adjust-for-leading-newline 650 .if t \{\ 651 .sp 1 652 .\} 653 .fi 654 .fam 655 .ps +1 656 .if n \{\ 657 .RE 658 .\} 412 659 .RE 413 660 .PP 414 661 \-C account\-policy\-value 415 662 .RS 4 416 Sets an account policy to a specified value\ . This option may only be used in conjunction with the663 Sets an account policy to a specified value\&. This option may only be used in conjunction with the 417 664 \fI\-P\fR 418 option\. 419 .sp 420 Example: 421 pdbedit \-P "bad lockout attempt" \-C 3 422 .sp 423 .sp 424 .RS 4 665 option\&. 666 .sp 667 Example: 668 \FCpdbedit \-P "bad lockout attempt" \-C 3\F[] 669 .sp 670 .if n \{\ 671 .RS 4 672 .\} 673 .fam C 674 .ps -1 425 675 .nf 676 .if t \{\ 677 .sp -1 678 .\} 679 .BB lightgray adjust-for-leading-newline 680 .sp -1 681 426 682 account policy value for bad lockout attempt was 0 427 683 account policy value for bad lockout attempt is now 3 428 .fi 429 .RE 684 .EB lightgray adjust-for-leading-newline 685 .if t \{\ 686 .sp 1 687 .\} 688 .fi 689 .fam 690 .ps +1 691 .if n \{\ 692 .RE 693 .\} 430 694 .RE 431 695 .PP … … 435 699 \fI\-y\fR, then 436 700 \fI\-i in\-backend \-e out\-backend\fR 437 applies to the account policies instead of the user database\ .438 .sp 439 This option will allow to migrate account policies from their default tdb\-store into a passdb backend, e\ .g\. an LDAP directory server\.440 .sp 441 Example: 442 pdbedit \-y \-i tdbsam: \-e ldapsam:ldap://my\.ldap\.host 701 applies to the account policies instead of the user database\&. 702 .sp 703 This option will allow to migrate account policies from their default tdb\-store into a passdb backend, e\&.g\&. an LDAP directory server\&. 704 .sp 705 Example: 706 \FCpdbedit \-y \-i tdbsam: \-e ldapsam:ldap://my\&.ldap\&.host\F[] 443 707 .RE 444 708 .PP 445 709 \-h|\-\-help 446 710 .RS 4 447 Print a summary of command line options\ .711 Print a summary of command line options\&. 448 712 .RE 449 713 .PP … … 451 715 .RS 4 452 716 \fIlevel\fR 453 is an integer from 0 to 10\ . The default value if this parameter is not specified is 0\.454 .sp 455 The higher this value, the more detail will be logged to the log files about the activities of the server\ . At level 0, only critical errors and serious warnings will be logged\. Level 1 is a reasonable level for day\-to\-day running \- it generates a small amount of information about operations carried out\.456 .sp 457 Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem\ . Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic\.717 is an integer from 0 to 10\&. The default value if this parameter is not specified is 0\&. 718 .sp 719 The higher this value, the more detail will be logged to the log files about the activities of the server\&. At level 0, only critical errors and serious warnings will be logged\&. Level 1 is a reasonable level for day\-to\-day running \- it generates a small amount of information about operations carried out\&. 720 .sp 721 Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem\&. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic\&. 458 722 .sp 459 723 Note that specifying this parameter here will override the 460 \ fIlog level\fR724 \m[blue]\fBlog level\fR\m[] 461 725 parameter in the 462 \ fIsmb\.conf\fR463 file\ .726 \FCsmb\&.conf\F[] 727 file\&. 464 728 .RE 465 729 .PP 466 730 \-V 467 731 .RS 4 468 Prints the program version number\ .732 Prints the program version number\&. 469 733 .RE 470 734 .PP 471 735 \-s <configuration file> 472 736 .RS 4 473 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\. See474 \ fIsmb\.conf\fR475 for more information\ . The default configuration file name is determined at compile time\.737 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 738 \FCsmb\&.conf\F[] 739 for more information\&. The default configuration file name is determined at compile time\&. 476 740 .RE 477 741 .PP 478 742 \-l|\-\-log\-basename=logdirectory 479 743 .RS 4 480 Base directory name for log/debug files\ . The extension481 \fB"\ .progname"\fR482 will be appended (e\ .g\. log\.smbclient, log\.smbd, etc\.\.\.)\. The log file is never removed by the client\.744 Base directory name for log/debug files\&. The extension 745 \fB"\&.progname"\fR 746 will be appended (e\&.g\&. log\&.smbclient, log\&.smbd, etc\&.\&.\&.)\&. The log file is never removed by the client\&. 483 747 .RE 484 748 .SH "NOTES" 485 749 .PP 486 This command may be used only by root\ .750 This command may be used only by root\&. 487 751 .SH "VERSION" 488 752 .PP 489 This man page is correct for version 3\ .0 of the Samba suite\.753 This man page is correct for version 3\&.0 of the Samba suite\&. 490 754 .SH "SEE ALSO" 491 755 .PP … … 494 758 .SH "AUTHOR" 495 759 .PP 496 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\.497 .PP 498 The pdbedit manpage was written by Simo Sorce and Jelmer Vernooij\ .760 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\&. 761 .PP 762 The pdbedit manpage was written by Simo Sorce and Jelmer Vernooij\&.
Note:
See TracChangeset
for help on using the changeset viewer.