見出し画像

Appendix pdbeditコマンド

Samba3のpdbeditコマンド

Samba3 pdbedit 日本語訳

[root@rocky9-samba31 ~]#
[root@rocky9-samba31 ~]# pdbedit --version
Version 3.6.25
[root@rocky9-samba31 ~]#
[root@rocky9-samba31 ~]# pdbedit -usage
Username not found!
[root@rocky9-samba31 ~]# pdbedit --usage
Usage: [-?] [-?LvwarmxgyzZtV] [-?|--help] [--usage] [-L|--list] [-v|--verbose]
        [-w|--smbpasswd-style] [-u|--user USER] [-N|--account-desc STRING]
        [-f|--fullname STRING] [-h|--homedir STRING] [-D|--drive STRING]
        [-S|--script STRING] [-p|--profile STRING] [-I|--domain STRING]
        [-U|--user SID STRING] [-M|--machine SID STRING] [-a|--create]
        [-r|--modify] [-m|--machine] [-x|--delete] [-b|--backend STRING]
        [-i|--import STRING] [-e|--export STRING] [-g|--group] [-y|--policies]
        [--policies-reset] [-P|--account-policy STRING] [-C|--value LONG]
        [-c|--account-control STRING] [--force-initialized-passwords]
        [-z|--bad-password-count-reset] [-Z|--logon-hours-reset]
        [--time-format=STRING] [-t|--password-from-stdin]
        [-K|--kickoff-time STRING] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [--option=name=value]
[root@rocky9-samba31 ~]#
[root@rocky9-samba31 ~]# pdbedit --help
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

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

Common samba options:
  -d, --debuglevel=DEBUGLEVEL        Set debug level
  -s, --configfile=CONFIGFILE        Use alternate configuration file
  -l, --log-basename=LOGFILEBASE     Base name for log files
  -V, --version                      Print version
  --option=name=value                Set smb.conf option from command line
[root@rocky9-samba31 ~]#

Samba4のpdbeditコマンド

Samba4 pdbedit 日本語訳

[root@rocky9-samba41 ~]#
[root@rocky9-samba41 ~]# pdbedit --version
Version 4.17.5
[root@rocky9-samba41 ~]#
[root@rocky9-samba41 ~]# pdbedit --usage
使い方: [-?LvwarmxgyzZtV] [-?|--help] [--usage] [-L|--list] [-v|--verbose]
        [-w|--smbpasswd-style] [-u|--user=USER] [-N|--account-desc=文字列]
        [-f|--fullname=文字列] [-h|--homedir=文字列] [-D|--drive=文字列]
        [-S|--script=文字列] [-p|--profile=文字列] [-I|--domain=文字列]
        [-U|--user SID=文字列] [-M|--machine SID=文字列] [-a|--create]
        [-r|--modify] [-m|--machine] [-x|--delete] [-b|--backend=文字列]
        [-i|--import=文字列] [-e|--export=文字列] [-g|--group] [-y|--policies]
        [--policies-reset] [-P|--account-policy=文字列] [-C|--value=LONG]
        [-c|--account-control=文字列] [--force-initialized-passwords]
        [-z|--bad-password-count-reset] [-Z|--logon-hours-reset]
        [--time-format=文字列] [-t|--password-from-stdin]
        [-K|--kickoff-time=文字列] [--set-nt-hash=文字列]
        [-d|--debuglevel=DEBUGLEVEL] [--debug-stdout]
        [-s|--configfile=CONFIGFILE] [--option=name=value]
        [-l|--log-basename=LOGFILEBASE] [--leak-report] [--leak-report-full]
        [-V|--version]
[root@rocky9-samba41 ~]#
[root@rocky9-samba41 ~]# pdbedit --help
使い方: [オプション...]
  -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=文字列          set account description
  -f, --fullname=文字列              set full name
  -h, --homedir=文字列               set home directory
  -D, --drive=文字列                 set home drive
  -S, --script=文字列                set logon script
  -p, --profile=文字列               set profile path
  -I, --domain=文字列                set a users' domain
  -U, --user SID=文字列              set user SID or RID
  -M, --machine SID=文字列           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=文字列               use different passdb backend as
                                        default backend
  -i, --import=文字列                import user accounts from this backend
  -e, --export=文字列                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=文字列        value of an account policy (like
                                        maximum password age)
  -C, --value=LONG                      set the account policy to this value
  -c, --account-control=文字列       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=文字列           The time format for time parameters
  -t, --password-from-stdin             get password from standard in
  -K, --kickoff-time=文字列          set the kickoff time
      --set-nt-hash=文字列           set password from nt-hash

ヘルプオプション:
  -?, --help                            このヘルプメッセージを表示します
      --usage                           使い方の概要を表示します

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
[root@rocky9-samba41 ~]#


この記事が気に入ったらサポートをしてみませんか?