OS Manuals

/usr/bin/pdbedit

Tools for Samba servers and clients

From samba-common-tools 4.25.1-r1 (os), captured 2026-11-05 by running pdbedit --help (exit 0). permalink

Usage: [OPTION...]
  -L, --list                            list all users
  -v, --verbose                         be verbose
  -w, --smbpasswd-style                 give output in smbpasswd style
  -u, --user=USER                       use username
  -N, --account-desc=STRING             set account description
  -f, --fullname=STRING                 set full name
  -h, --homedir=STRING                  set home directory
  -D, --drive=STRING                    set home drive
  -S, --script=STRING                   set logon script
  -p, --profile=STRING                  set profile path
  -I, --domain=STRING                   set a users' domain
  -U, --user SID=STRING                 set user SID or RID
  -M, --machine SID=STRING              set machine SID or RID
  -a, --create                          create user
  -r, --modify                          modify user
  -m, --machine                         account is a machine account
  -x, --delete                          delete user
  -b, --backend=STRING                  use different passdb backend as
                                        default backend
  -i, --import=STRING                   import user accounts from this backend
  -e, --export=STRING                   export user accounts to this backend
  -g, --group                           use -i and -e for groups
  -y, --policies                        use -i and -e to move account policies
                                        between backends
      --policies-reset                  restore default policies
  -P, --account-policy=STRING           value of an account policy (like
                                        maximum password age)
  -C, --value=LONG                      set the account policy to this value
  -c, --account-control=STRING          Values of account control
      --force-initialized-passwords     Force initialization of corrupt
                                        password strings in a passdb backend
  -z, --bad-password-count-reset        reset bad password count
  -Z, --logon-hours-reset               reset logon hours
      --time-format=STRING              The time format for time parameters
  -t, --password-from-stdin             get password from standard in
  -K, --kickoff-time=STRING             set the kickoff time
      --set-nt-hash=STRING              set password from nt-hash

Help options:
  -?, --help                            Show this help message
      --usage                           Display brief usage message

Common Samba options:
  -d, --debuglevel=DEBUGLEVEL           Set debug level
      --debug-stdout                    Send debug output to standard output
  -s, --configfile=CONFIGFILE           Use alternative configuration file
      --option=name=value               Set smb.conf option from command line
  -l, --log-basename=LOGFILEBASE        Basename for log/debug files
      --leak-report                     enable talloc leak reporting on exit
      --leak-report-full                enable full talloc leak reporting on
                                        exit

Version options:
  -V, --version                         Print version
Options (41)
OptionDescriptionSource
-L, --listlist all usershelp
-v, --verbosebe verbosehelp
-w, --smbpasswd-stylegive output in smbpasswd stylehelp
-u, --user USERuse usernamehelp
-N, --account-desc STRINGset account descriptionhelp
-f, --fullname STRINGset full namehelp
-h, --homedir STRINGset home directoryhelp
-D, --drive STRINGset home drivehelp
-S, --script STRINGset logon scripthelp
-p, --profile STRINGset profile pathhelp
-I, --domain STRINGset a users' domainhelp
-M, --machine SID=STRINGset machine SID or RIDhelp
-a, --createcreate userhelp
-r, --modifymodify userhelp
-x, --deletedelete userhelp
-b, --backend STRINGuse different passdb backend as default backendhelp
-i, --import STRINGimport user accounts from this backendhelp
-e, --export STRINGexport user accounts to this backendhelp
-g, --groupuse -i and -e for groupshelp
-y, --policiesuse -i and -e to move account policies between backendshelp
--policies-resetrestore default policieshelp
-P, --account-policy STRINGvalue of an account policy (like maximum password age)help
-C, --value LONGset the account policy to this valuehelp
-c, --account-control STRINGValues of account controlhelp
--force-initialized-passwordsForce initialization of corrupt password strings in a passdb backendhelp
-z, --bad-password-count-resetreset bad password counthelp
-Z, --logon-hours-resetreset logon hourshelp
--time-format STRINGThe time format for time parametershelp
-t, --password-from-stdinget password from standard inhelp
-K, --kickoff-time STRINGset the kickoff timehelp
--set-nt-hash STRINGset password from nt-hashhelp
-?, --helpShow this help messagehelp
--usageDisplay brief usage message.help + man
-d, --debuglevel DEBUGLEVELSet debug levelhelp
--debug-stdoutThis will redirect debug output to STDOUT.help + man
-s, --configfile CONFIGFILEThe file specified contains the configuration details required by the client.help + man
--option name=valueSet the smb.conf(5) option "<name>" to value "<value>" from the command line.help + man
-l, --log-basename LOGFILEBASEBasename for log/debug fileshelp
--leak-reportEnable talloc leak reporting on exit.help + man
--leak-report-fullEnable full talloc leak reporting on exit.help + man
-V, --versionPrint versionhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.