[862] | 1 | '\" t
|
---|
| 2 | .\" Title: pdbedit
|
---|
| 3 | .\" Author: [see the "AUTHOR" section]
|
---|
| 4 | .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
|
---|
| 5 | .\" Date: 09/18/2013
|
---|
| 6 | .\" Manual: System Administration tools
|
---|
| 7 | .\" Source: Samba 3.6
|
---|
| 8 | .\" Language: English
|
---|
| 9 | .\"
|
---|
| 10 | .TH "PDBEDIT" "8" "09/18/2013" "Samba 3\&.6" "System Administration tools"
|
---|
| 11 | .\" -----------------------------------------------------------------
|
---|
| 12 | .\" * Define some portability stuff
|
---|
| 13 | .\" -----------------------------------------------------------------
|
---|
| 14 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 15 | .\" http://bugs.debian.org/507673
|
---|
| 16 | .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
---|
| 17 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 18 | .ie \n(.g .ds Aq \(aq
|
---|
| 19 | .el .ds Aq '
|
---|
| 20 | .\" -----------------------------------------------------------------
|
---|
| 21 | .\" * set default formatting
|
---|
| 22 | .\" -----------------------------------------------------------------
|
---|
| 23 | .\" disable hyphenation
|
---|
| 24 | .nh
|
---|
| 25 | .\" disable justification (adjust text to left margin only)
|
---|
| 26 | .ad l
|
---|
| 27 | .\" -----------------------------------------------------------------
|
---|
| 28 | .\" * MAIN CONTENT STARTS HERE *
|
---|
| 29 | .\" -----------------------------------------------------------------
|
---|
| 30 | .SH "NAME"
|
---|
| 31 | pdbedit \- manage the SAM database (Database of Samba Users)
|
---|
| 32 | .SH "SYNOPSIS"
|
---|
| 33 | .HP \w'\ 'u
|
---|
| 34 | pdbedit [\-a] [\-b\ passdb\-backend] [\-c\ account\-control] [\-C\ value] [\-d\ debuglevel] [\-D\ drive] [\-e\ passdb\-backend] [\-f\ fullname] [\-\-force\-initialized\-passwords] [\-g] [\-h\ homedir] [\-i\ passdb\-backend] [\-I\ domain] [\-K] [\-L] [\-m] [\-M\ SID|RID] [\-N\ description] [\-P\ account\-policy] [\-p\ profile] [\-\-policies\-reset] [\-r] [\-s\ configfile] [\-S\ script] [\-t] [\-\-time\-format] [\-u\ username] [\-U\ SID|RID] [\-v] [\-V] [\-w] [\-x] [\-y] [\-z] [\-Z]
|
---|
| 35 | .SH "DESCRIPTION"
|
---|
| 36 | .PP
|
---|
| 37 | This tool is part of the
|
---|
| 38 | \fBsamba\fR(7)
|
---|
| 39 | suite\&.
|
---|
| 40 | .PP
|
---|
| 41 | The pdbedit program is used to manage the users accounts stored in the sam database and can only be run by root\&.
|
---|
| 42 | .PP
|
---|
| 43 | 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)\&.
|
---|
| 44 | .PP
|
---|
| 45 | There are five main ways to use pdbedit: adding a user account, removing a user account, modifying a user account, listing user accounts, importing users accounts\&.
|
---|
| 46 | .SH "OPTIONS"
|
---|
| 47 | .PP
|
---|
| 48 | \-L|\-\-list
|
---|
| 49 | .RS 4
|
---|
| 50 | This option lists all the user accounts present in the users database\&. This option prints a list of user/uid pairs separated by the \*(Aq:\*(Aq character\&.
|
---|
| 51 | .sp
|
---|
| 52 | Example:
|
---|
| 53 | pdbedit \-L
|
---|
| 54 | .sp
|
---|
| 55 | .if n \{\
|
---|
| 56 | .RS 4
|
---|
| 57 | .\}
|
---|
| 58 | .nf
|
---|
| 59 | sorce:500:Simo Sorce
|
---|
| 60 | samba:45:Test User
|
---|
| 61 | .fi
|
---|
| 62 | .if n \{\
|
---|
| 63 | .RE
|
---|
| 64 | .\}
|
---|
| 65 | .RE
|
---|
| 66 | .PP
|
---|
| 67 | \-v|\-\-verbose
|
---|
| 68 | .RS 4
|
---|
| 69 | 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\&.
|
---|
| 70 | .sp
|
---|
| 71 | Example:
|
---|
| 72 | pdbedit \-L \-v
|
---|
| 73 | .sp
|
---|
| 74 | .if n \{\
|
---|
| 75 | .RS 4
|
---|
| 76 | .\}
|
---|
| 77 | .nf
|
---|
| 78 | \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
|
---|
| 79 | username: sorce
|
---|
| 80 | user ID/Group: 500/500
|
---|
| 81 | user RID/GRID: 2000/2001
|
---|
| 82 | Full Name: Simo Sorce
|
---|
| 83 | Home Directory: \e\eBERSERKER\esorce
|
---|
| 84 | HomeDir Drive: H:
|
---|
| 85 | Logon Script: \e\eBERSERKER\enetlogon\esorce\&.bat
|
---|
| 86 | Profile Path: \e\eBERSERKER\eprofile
|
---|
| 87 | \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
|
---|
| 88 | username: samba
|
---|
| 89 | user ID/Group: 45/45
|
---|
| 90 | user RID/GRID: 1090/1091
|
---|
| 91 | Full Name: Test User
|
---|
| 92 | Home Directory: \e\eBERSERKER\esamba
|
---|
| 93 | HomeDir Drive:
|
---|
| 94 | Logon Script:
|
---|
| 95 | Profile Path: \e\eBERSERKER\eprofile
|
---|
| 96 | .fi
|
---|
| 97 | .if n \{\
|
---|
| 98 | .RE
|
---|
| 99 | .\}
|
---|
| 100 | .RE
|
---|
| 101 | .PP
|
---|
| 102 | \-w|\-\-smbpasswd\-style
|
---|
| 103 | .RS 4
|
---|
| 104 | 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
|
---|
| 105 | smbpasswd
|
---|
| 106 | file format\&. (see the
|
---|
| 107 | \fBsmbpasswd\fR(5)
|
---|
| 108 | for details)
|
---|
| 109 | .sp
|
---|
| 110 | Example:
|
---|
| 111 | pdbedit \-L \-w
|
---|
| 112 | .sp
|
---|
| 113 | .if n \{\
|
---|
| 114 | .RS 4
|
---|
| 115 | .\}
|
---|
| 116 | .nf
|
---|
| 117 | sorce:500:508818B733CE64BEAAD3B435B51404EE:
|
---|
| 118 | D2A2418EFC466A8A0F6B1DBB5C3DB80C:
|
---|
| 119 | [UX ]:LCT\-00000000:
|
---|
| 120 | samba:45:0F2B255F7B67A7A9AAD3B435B51404EE:
|
---|
| 121 | BC281CE3F53B6A5146629CD4751D3490:
|
---|
| 122 | [UX ]:LCT\-3BFA1E8D:
|
---|
| 123 | .fi
|
---|
| 124 | .if n \{\
|
---|
| 125 | .RE
|
---|
| 126 | .\}
|
---|
| 127 | .RE
|
---|
| 128 | .PP
|
---|
| 129 | \-u|\-\-user username
|
---|
| 130 | .RS 4
|
---|
| 131 | This option specifies the username to be used for the operation requested (listing, adding, removing)\&. It is
|
---|
| 132 | \fIrequired\fR
|
---|
| 133 | in add, remove and modify operations and
|
---|
| 134 | \fIoptional\fR
|
---|
| 135 | in list operations\&.
|
---|
| 136 | .RE
|
---|
| 137 | .PP
|
---|
| 138 | \-f|\-\-fullname fullname
|
---|
| 139 | .RS 4
|
---|
| 140 | This option can be used while adding or modifying a user account\&. It will specify the user\*(Aqs full name\&.
|
---|
| 141 | .sp
|
---|
| 142 | Example:
|
---|
| 143 | \-f "Simo Sorce"
|
---|
| 144 | .RE
|
---|
| 145 | .PP
|
---|
| 146 | \-h|\-\-homedir homedir
|
---|
| 147 | .RS 4
|
---|
| 148 | This option can be used while adding or modifying a user account\&. It will specify the user\*(Aqs home directory network path\&.
|
---|
| 149 | .sp
|
---|
| 150 | Example:
|
---|
| 151 | \-h "\e\e\e\eBERSERKER\e\esorce"
|
---|
| 152 | .RE
|
---|
| 153 | .PP
|
---|
| 154 | \-D|\-\-drive drive
|
---|
| 155 | .RS 4
|
---|
| 156 | This option can be used while adding or modifying a user account\&. It will specify the windows drive letter to be used to map the home directory\&.
|
---|
| 157 | .sp
|
---|
| 158 | Example:
|
---|
| 159 | \-D "H:"
|
---|
| 160 | .RE
|
---|
| 161 | .PP
|
---|
| 162 | \-S|\-\-script script
|
---|
| 163 | .RS 4
|
---|
| 164 | This option can be used while adding or modifying a user account\&. It will specify the user\*(Aqs logon script path\&.
|
---|
| 165 | .sp
|
---|
| 166 | Example:
|
---|
| 167 | \-S "\e\e\e\eBERSERKER\e\enetlogon\e\esorce\&.bat"
|
---|
| 168 | .RE
|
---|
| 169 | .PP
|
---|
| 170 | \-p|\-\-profile profile
|
---|
| 171 | .RS 4
|
---|
| 172 | This option can be used while adding or modifying a user account\&. It will specify the user\*(Aqs profile directory\&.
|
---|
| 173 | .sp
|
---|
| 174 | Example:
|
---|
| 175 | \-p "\e\e\e\eBERSERKER\e\enetlogon"
|
---|
| 176 | .RE
|
---|
| 177 | .PP
|
---|
| 178 | \-M|\*(Aq\-\-machine SID\*(Aq SID|rid
|
---|
| 179 | .RS 4
|
---|
| 180 | This option can be used while adding or modifying a machine account\&. It will specify the machines\*(Aq new primary group SID (Security Identifier) or rid\&.
|
---|
| 181 | .sp
|
---|
| 182 | Example:
|
---|
| 183 | \-M S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-1201
|
---|
| 184 | .RE
|
---|
| 185 | .PP
|
---|
| 186 | \-U|\*(Aq\-\-user SID\*(Aq SID|rid
|
---|
| 187 | .RS 4
|
---|
| 188 | This option can be used while adding or modifying a user account\&. It will specify the users\*(Aq new SID (Security Identifier) or rid\&.
|
---|
| 189 | .sp
|
---|
| 190 | Example:
|
---|
| 191 | \-U S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-5004
|
---|
| 192 | .sp
|
---|
| 193 | Example:
|
---|
| 194 | \*(Aq\-\-user SID\*(Aq S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-5004
|
---|
| 195 | .sp
|
---|
| 196 | Example:
|
---|
| 197 | \-U 5004
|
---|
| 198 | .sp
|
---|
| 199 | Example:
|
---|
| 200 | \*(Aq\-\-user SID\*(Aq 5004
|
---|
| 201 | .RE
|
---|
| 202 | .PP
|
---|
| 203 | \-c|\-\-account\-control account\-control
|
---|
| 204 | .RS 4
|
---|
| 205 | This option can be used while adding or modifying a user account\&. It will specify the users\*(Aq account control property\&. Possible flags are listed below\&.
|
---|
| 206 | .sp
|
---|
| 207 |
|
---|
| 208 | .sp
|
---|
| 209 | .RS 4
|
---|
| 210 | .ie n \{\
|
---|
| 211 | \h'-04'\(bu\h'+03'\c
|
---|
| 212 | .\}
|
---|
| 213 | .el \{\
|
---|
| 214 | .sp -1
|
---|
| 215 | .IP \(bu 2.3
|
---|
| 216 | .\}
|
---|
| 217 | N: No password required
|
---|
| 218 | .RE
|
---|
| 219 | .sp
|
---|
| 220 | .RS 4
|
---|
| 221 | .ie n \{\
|
---|
| 222 | \h'-04'\(bu\h'+03'\c
|
---|
| 223 | .\}
|
---|
| 224 | .el \{\
|
---|
| 225 | .sp -1
|
---|
| 226 | .IP \(bu 2.3
|
---|
| 227 | .\}
|
---|
| 228 | D: Account disabled
|
---|
| 229 | .RE
|
---|
| 230 | .sp
|
---|
| 231 | .RS 4
|
---|
| 232 | .ie n \{\
|
---|
| 233 | \h'-04'\(bu\h'+03'\c
|
---|
| 234 | .\}
|
---|
| 235 | .el \{\
|
---|
| 236 | .sp -1
|
---|
| 237 | .IP \(bu 2.3
|
---|
| 238 | .\}
|
---|
| 239 | H: Home directory required
|
---|
| 240 | .RE
|
---|
| 241 | .sp
|
---|
| 242 | .RS 4
|
---|
| 243 | .ie n \{\
|
---|
| 244 | \h'-04'\(bu\h'+03'\c
|
---|
| 245 | .\}
|
---|
| 246 | .el \{\
|
---|
| 247 | .sp -1
|
---|
| 248 | .IP \(bu 2.3
|
---|
| 249 | .\}
|
---|
| 250 | T: Temporary duplicate of other account
|
---|
| 251 | .RE
|
---|
| 252 | .sp
|
---|
| 253 | .RS 4
|
---|
| 254 | .ie n \{\
|
---|
| 255 | \h'-04'\(bu\h'+03'\c
|
---|
| 256 | .\}
|
---|
| 257 | .el \{\
|
---|
| 258 | .sp -1
|
---|
| 259 | .IP \(bu 2.3
|
---|
| 260 | .\}
|
---|
| 261 | U: Regular user account
|
---|
| 262 | .RE
|
---|
| 263 | .sp
|
---|
| 264 | .RS 4
|
---|
| 265 | .ie n \{\
|
---|
| 266 | \h'-04'\(bu\h'+03'\c
|
---|
| 267 | .\}
|
---|
| 268 | .el \{\
|
---|
| 269 | .sp -1
|
---|
| 270 | .IP \(bu 2.3
|
---|
| 271 | .\}
|
---|
| 272 | M: MNS logon user account
|
---|
| 273 | .RE
|
---|
| 274 | .sp
|
---|
| 275 | .RS 4
|
---|
| 276 | .ie n \{\
|
---|
| 277 | \h'-04'\(bu\h'+03'\c
|
---|
| 278 | .\}
|
---|
| 279 | .el \{\
|
---|
| 280 | .sp -1
|
---|
| 281 | .IP \(bu 2.3
|
---|
| 282 | .\}
|
---|
| 283 | W: Workstation Trust Account
|
---|
| 284 | .RE
|
---|
| 285 | .sp
|
---|
| 286 | .RS 4
|
---|
| 287 | .ie n \{\
|
---|
| 288 | \h'-04'\(bu\h'+03'\c
|
---|
| 289 | .\}
|
---|
| 290 | .el \{\
|
---|
| 291 | .sp -1
|
---|
| 292 | .IP \(bu 2.3
|
---|
| 293 | .\}
|
---|
| 294 | S: Server Trust Account
|
---|
| 295 | .RE
|
---|
| 296 | .sp
|
---|
| 297 | .RS 4
|
---|
| 298 | .ie n \{\
|
---|
| 299 | \h'-04'\(bu\h'+03'\c
|
---|
| 300 | .\}
|
---|
| 301 | .el \{\
|
---|
| 302 | .sp -1
|
---|
| 303 | .IP \(bu 2.3
|
---|
| 304 | .\}
|
---|
| 305 | L: Automatic Locking
|
---|
| 306 | .RE
|
---|
| 307 | .sp
|
---|
| 308 | .RS 4
|
---|
| 309 | .ie n \{\
|
---|
| 310 | \h'-04'\(bu\h'+03'\c
|
---|
| 311 | .\}
|
---|
| 312 | .el \{\
|
---|
| 313 | .sp -1
|
---|
| 314 | .IP \(bu 2.3
|
---|
| 315 | .\}
|
---|
| 316 | X: Password does not expire
|
---|
| 317 | .RE
|
---|
| 318 | .sp
|
---|
| 319 | .RS 4
|
---|
| 320 | .ie n \{\
|
---|
| 321 | \h'-04'\(bu\h'+03'\c
|
---|
| 322 | .\}
|
---|
| 323 | .el \{\
|
---|
| 324 | .sp -1
|
---|
| 325 | .IP \(bu 2.3
|
---|
| 326 | .\}
|
---|
| 327 | I: Domain Trust Account
|
---|
| 328 | .RE
|
---|
| 329 | .sp
|
---|
| 330 | .RE
|
---|
| 331 | .sp
|
---|
| 332 | Example:
|
---|
| 333 | \-c "[X ]"
|
---|
| 334 | .RE
|
---|
| 335 | .PP
|
---|
| 336 | \-K|\-\-kickoff\-time
|
---|
| 337 | .RS 4
|
---|
| 338 | This option is used to modify the kickoff time for a certain user\&. Use "never" as argument to set the kickoff time to unlimited\&.
|
---|
| 339 | .sp
|
---|
| 340 | Example:
|
---|
| 341 | pdbedit \-K never user
|
---|
| 342 | .RE
|
---|
| 343 | .PP
|
---|
| 344 | \-a|\-\-create
|
---|
| 345 | .RS 4
|
---|
| 346 | 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\&.
|
---|
| 347 | .sp
|
---|
| 348 | Example:
|
---|
| 349 | pdbedit \-a \-u sorce
|
---|
| 350 | .sp
|
---|
| 351 | .if n \{\
|
---|
| 352 | .RS 4
|
---|
| 353 | .\}
|
---|
| 354 | .nf
|
---|
| 355 | new password:
|
---|
| 356 | retype new password
|
---|
| 357 | .fi
|
---|
| 358 | .if n \{\
|
---|
| 359 | .RE
|
---|
| 360 | .\}
|
---|
| 361 | .sp
|
---|
| 362 | .if n \{\
|
---|
| 363 | .sp
|
---|
| 364 | .\}
|
---|
| 365 | .RS 4
|
---|
| 366 | .it 1 an-trap
|
---|
| 367 | .nr an-no-space-flag 1
|
---|
| 368 | .nr an-break-flag 1
|
---|
| 369 | .br
|
---|
| 370 | .ps +1
|
---|
| 371 | \fBNote\fR
|
---|
| 372 | .ps -1
|
---|
| 373 | .br
|
---|
| 374 | pdbedit does not call the unix password syncronisation script if
|
---|
| 375 | \m[blue]\fBunix password sync\fR\m[]
|
---|
| 376 | has been set\&. It only updates the data in the Samba user database\&.
|
---|
| 377 | .sp
|
---|
| 378 | If you wish to add a user and synchronise the password that immediately, use
|
---|
| 379 | smbpasswd\*(Aqs
|
---|
| 380 | \fB\-a\fR
|
---|
| 381 | option\&.
|
---|
| 382 | .sp .5v
|
---|
| 383 | .RE
|
---|
| 384 | .RE
|
---|
| 385 | .PP
|
---|
| 386 | \-t|\-\-password\-from\-stdin
|
---|
| 387 | .RS 4
|
---|
| 388 | This option causes pdbedit to read the password from standard input, rather than from /dev/tty (like the
|
---|
| 389 | passwd(1)
|
---|
| 390 | program does)\&. The password has to be submitted twice and terminated by a newline each\&.
|
---|
| 391 | .RE
|
---|
| 392 | .PP
|
---|
| 393 | \-r|\-\-modify
|
---|
| 394 | .RS 4
|
---|
| 395 | 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\&.
|
---|
| 396 | .RE
|
---|
| 397 | .PP
|
---|
| 398 | \-m|\-\-machine
|
---|
| 399 | .RS 4
|
---|
| 400 | This option may only be used in conjunction with the
|
---|
| 401 | \fI\-a\fR
|
---|
| 402 | option\&. It will make pdbedit to add a machine trust account instead of a user account (\-u username will provide the machine name)\&.
|
---|
| 403 | .sp
|
---|
| 404 | Example:
|
---|
| 405 | pdbedit \-a \-m \-u w2k\-wks
|
---|
| 406 | .RE
|
---|
| 407 | .PP
|
---|
| 408 | \-x|\-\-delete
|
---|
| 409 | .RS 4
|
---|
| 410 | This option causes pdbedit to delete an account from the database\&. It needs a username specified with the \-u switch\&.
|
---|
| 411 | .sp
|
---|
| 412 | Example:
|
---|
| 413 | pdbedit \-x \-u bob
|
---|
| 414 | .RE
|
---|
| 415 | .PP
|
---|
| 416 | \-i|\-\-import passdb\-backend
|
---|
| 417 | .RS 4
|
---|
| 418 | 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\&.
|
---|
| 419 | .sp
|
---|
| 420 | This option will ease migration from one passdb backend to another\&.
|
---|
| 421 | .sp
|
---|
| 422 | Example:
|
---|
| 423 | pdbedit \-i smbpasswd:/etc/smbpasswd\&.old
|
---|
| 424 | .RE
|
---|
| 425 | .PP
|
---|
| 426 | \-e|\-\-export passdb\-backend
|
---|
| 427 | .RS 4
|
---|
| 428 | Exports all currently available users to the specified password database backend\&.
|
---|
| 429 | .sp
|
---|
| 430 | This option will ease migration from one passdb backend to another and will ease backing up\&.
|
---|
| 431 | .sp
|
---|
| 432 | Example:
|
---|
| 433 | pdbedit \-e smbpasswd:/root/samba\-users\&.backup
|
---|
| 434 | .RE
|
---|
| 435 | .PP
|
---|
| 436 | \-g|\-\-group
|
---|
| 437 | .RS 4
|
---|
| 438 | If you specify
|
---|
| 439 | \fI\-g\fR, then
|
---|
| 440 | \fI\-i in\-backend \-e out\-backend\fR
|
---|
| 441 | applies to the group mapping instead of the user database\&.
|
---|
| 442 | .sp
|
---|
| 443 | This option will ease migration from one passdb backend to another and will ease backing up\&.
|
---|
| 444 | .RE
|
---|
| 445 | .PP
|
---|
| 446 | \-b|\-\-backend passdb\-backend
|
---|
| 447 | .RS 4
|
---|
| 448 | Use a different default passdb backend\&.
|
---|
| 449 | .sp
|
---|
| 450 | Example:
|
---|
| 451 | pdbedit \-b xml:/root/pdb\-backup\&.xml \-l
|
---|
| 452 | .RE
|
---|
| 453 | .PP
|
---|
| 454 | \-P|\-\-account\-policy account\-policy
|
---|
| 455 | .RS 4
|
---|
| 456 | Display an account policy
|
---|
| 457 | .sp
|
---|
| 458 | 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\&.
|
---|
| 459 | .sp
|
---|
| 460 | Example:
|
---|
| 461 | pdbedit \-P "bad lockout attempt"
|
---|
| 462 | .sp
|
---|
| 463 | .if n \{\
|
---|
| 464 | .RS 4
|
---|
| 465 | .\}
|
---|
| 466 | .nf
|
---|
| 467 | account policy value for bad lockout attempt is 0
|
---|
| 468 | .fi
|
---|
| 469 | .if n \{\
|
---|
| 470 | .RE
|
---|
| 471 | .\}
|
---|
| 472 | .RE
|
---|
| 473 | .PP
|
---|
| 474 | \-C|\-\-value account\-policy\-value
|
---|
| 475 | .RS 4
|
---|
| 476 | Sets an account policy to a specified value\&. This option may only be used in conjunction with the
|
---|
| 477 | \fI\-P\fR
|
---|
| 478 | option\&.
|
---|
| 479 | .sp
|
---|
| 480 | Example:
|
---|
| 481 | pdbedit \-P "bad lockout attempt" \-C 3
|
---|
| 482 | .sp
|
---|
| 483 | .if n \{\
|
---|
| 484 | .RS 4
|
---|
| 485 | .\}
|
---|
| 486 | .nf
|
---|
| 487 | account policy value for bad lockout attempt was 0
|
---|
| 488 | account policy value for bad lockout attempt is now 3
|
---|
| 489 | .fi
|
---|
| 490 | .if n \{\
|
---|
| 491 | .RE
|
---|
| 492 | .\}
|
---|
| 493 | .RE
|
---|
| 494 | .PP
|
---|
| 495 | \-y|\-\-policies
|
---|
| 496 | .RS 4
|
---|
| 497 | If you specify
|
---|
| 498 | \fI\-y\fR, then
|
---|
| 499 | \fI\-i in\-backend \-e out\-backend\fR
|
---|
| 500 | applies to the account policies instead of the user database\&.
|
---|
| 501 | .sp
|
---|
| 502 | This option will allow to migrate account policies from their default tdb\-store into a passdb backend, e\&.g\&. an LDAP directory server\&.
|
---|
| 503 | .sp
|
---|
| 504 | Example:
|
---|
| 505 | pdbedit \-y \-i tdbsam: \-e ldapsam:ldap://my\&.ldap\&.host
|
---|
| 506 | .RE
|
---|
| 507 | .PP
|
---|
| 508 | \-\-force\-initialized\-passwords
|
---|
| 509 | .RS 4
|
---|
| 510 | This option forces all users to change their password upon next login\&.
|
---|
| 511 | .RE
|
---|
| 512 | .PP
|
---|
| 513 | \-N|\-\-account\-desc description
|
---|
| 514 | .RS 4
|
---|
| 515 | This option can be used while adding or modifying a user account\&. It will specify the user\*(Aqs description field\&.
|
---|
| 516 | .sp
|
---|
| 517 | Example:
|
---|
| 518 | \-N "test description"
|
---|
| 519 | .RE
|
---|
| 520 | .PP
|
---|
| 521 | \-Z|\-\-logon\-hours\-reset
|
---|
| 522 | .RS 4
|
---|
| 523 | This option can be used while adding or modifying a user account\&. It will reset the user\*(Aqs allowed logon hours\&. A user may login at any time afterwards\&.
|
---|
| 524 | .sp
|
---|
| 525 | Example:
|
---|
| 526 | \-Z
|
---|
| 527 | .RE
|
---|
| 528 | .PP
|
---|
| 529 | \-z|\-\-bad\-password\-count\-reset
|
---|
| 530 | .RS 4
|
---|
| 531 | This option can be used while adding or modifying a user account\&. It will reset the stored bad login counter from a specified user\&.
|
---|
| 532 | .sp
|
---|
| 533 | Example:
|
---|
| 534 | \-z
|
---|
| 535 | .RE
|
---|
| 536 | .PP
|
---|
| 537 | \-\-policies\-reset
|
---|
| 538 | .RS 4
|
---|
| 539 | This option can be used to reset the general password policies stored for a domain to their default values\&.
|
---|
| 540 | .sp
|
---|
| 541 | Example:
|
---|
| 542 | \-\-policies\-reset
|
---|
| 543 | .RE
|
---|
| 544 | .PP
|
---|
| 545 | \-I|\-\-domain
|
---|
| 546 | .RS 4
|
---|
| 547 | This option can be used while adding or modifying a user account\&. It will specify the user\*(Aqs domain field\&.
|
---|
| 548 | .sp
|
---|
| 549 | Example:
|
---|
| 550 | \-I "MYDOMAIN"
|
---|
| 551 | .RE
|
---|
| 552 | .PP
|
---|
| 553 | \-\-time\-format
|
---|
| 554 | .RS 4
|
---|
| 555 | This option is currently not being used\&.
|
---|
| 556 | .RE
|
---|
| 557 | .PP
|
---|
| 558 | \-h|\-\-help
|
---|
| 559 | .RS 4
|
---|
| 560 | Print a summary of command line options\&.
|
---|
| 561 | .RE
|
---|
| 562 | .PP
|
---|
| 563 | \-d|\-\-debuglevel=level
|
---|
| 564 | .RS 4
|
---|
| 565 | \fIlevel\fR
|
---|
| 566 | is an integer from 0 to 10\&. The default value if this parameter is not specified is 0\&.
|
---|
| 567 | .sp
|
---|
| 568 | 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\&.
|
---|
| 569 | .sp
|
---|
| 570 | 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\&.
|
---|
| 571 | .sp
|
---|
| 572 | Note that specifying this parameter here will override the
|
---|
| 573 | \m[blue]\fBlog level\fR\m[]
|
---|
| 574 | parameter in the
|
---|
| 575 | smb\&.conf
|
---|
| 576 | file\&.
|
---|
| 577 | .RE
|
---|
| 578 | .PP
|
---|
| 579 | \-V|\-\-version
|
---|
| 580 | .RS 4
|
---|
| 581 | Prints the program version number\&.
|
---|
| 582 | .RE
|
---|
| 583 | .PP
|
---|
| 584 | \-s|\-\-configfile <configuration file>
|
---|
| 585 | .RS 4
|
---|
| 586 | 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
|
---|
| 587 | smb\&.conf
|
---|
| 588 | for more information\&. The default configuration file name is determined at compile time\&.
|
---|
| 589 | .RE
|
---|
| 590 | .PP
|
---|
| 591 | \-l|\-\-log\-basename=logdirectory
|
---|
| 592 | .RS 4
|
---|
| 593 | Base directory name for log/debug files\&. The extension
|
---|
| 594 | \fB"\&.progname"\fR
|
---|
| 595 | will be appended (e\&.g\&. log\&.smbclient, log\&.smbd, etc\&.\&.\&.)\&. The log file is never removed by the client\&.
|
---|
| 596 | .RE
|
---|
| 597 | .SH "NOTES"
|
---|
| 598 | .PP
|
---|
| 599 | This command may be used only by root\&.
|
---|
| 600 | .SH "VERSION"
|
---|
| 601 | .PP
|
---|
| 602 | This man page is correct for version 3 of the Samba suite\&.
|
---|
| 603 | .SH "SEE ALSO"
|
---|
| 604 | .PP
|
---|
| 605 | \fBsmbpasswd\fR(5),
|
---|
| 606 | \fBsamba\fR(7)
|
---|
| 607 | .SH "AUTHOR"
|
---|
| 608 | .PP
|
---|
| 609 | 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\&.
|
---|
| 610 | .PP
|
---|
| 611 | The pdbedit manpage was written by Simo Sorce and Jelmer Vernooij\&.
|
---|