[**-r** *realm*]
[**-d** *dbname*]
[**-k** *mkeytype*]
-[**-M** *mkeyname*]
[**-kv** *mkeyVNO*]
-[**-sf** *stashfilename*]
+[**-M** *mkeyname*]
[**-m**]
+[**-sf** *stashfilename*]
+[**-P** *password*]
+[**-x** *db_args*]
*command* [*command_options*]
.. _kdb5_util_synopsis_end:
expose the password to other users on the system via the process
list.
+**-x** *db_args*
+ specifies database-specific options. See :ref:`kadmin(1)` for
+ supported options.
+
.. _kdb5_util_options_end:
.. _kdb5_util_dump:
- **dump** [**-b7**\|\ **-ov**\|\ **-r13**] [**-verbose**]
- [**-mkey_convert**] [**-new_mkey_file** *mkey_file*] [**-rev**]
- [**-recurse**] [*filename* [*principals*...]]
+ **dump** [**-b7**\|\ **-ov**\|\ **-r13**\|\ **-r18**]
+ [**-verbose**] [**-mkey_convert**] [**-new_mkey_file**
+ *mkey_file*] [**-rev**] [**-recurse**] [*filename*
+ [*principals*...]]
Dumps the current Kerberos and KADM5 database into an ASCII file. By
default, the database is dumped in current format, "kdb5_util
.. _kdb5_util_load:
- **load** [**-b7**\|\ **-ov**\|\ **-r13**] [**-hash**]
- [**-verbose**] [**-update**] *filename* [*dbname*]
+ **load** [**-b7**\|\ **-ov**\|\ **-r13**\|\ **-r18**] [**-hash**]
+ [**-verbose**] [**-update**] *filename*
Loads a database dump from the named file into the named database. If
no option is given to determine the format of the dump file, the
releases prior to 1.11.
**-hash**
- requires the database to be stored as a hash. If this option is
- not specified, the database will be stored as a btree. This
- option is not recommended, as databases stored in hash format are
- known to corrupt data and lose principals.
+ stores the database in hash format, if using the DB2 database
+ type. If this option is not specified, the database will be
+ stored in btree format. This option is not recommended, as
+ databases stored in hash format are known to corrupt data and lose
+ principals.
**-verbose**
causes the name of each principal and policy to be printed as it
what is in the dump file and the old one destroyed upon successful
completion.
-If specified, *dbname* overrides the value specified on the command
-line or the default.
-
.. _kdb5_util_load_end:
ark
Examples
########
-To load a single principal, either replacing or updating the database:
+To dump a single principal and later load it, updating the database:
::
- shell% kdb5_util load dumpfile principal
+ shell% kdb5_util dump dumpfile principal@REALM
shell%
- shell% kdb5_util load -update dumpfile principal
+ shell% kdb5_util load -update dumpfile
shell%
void usage()
{
fprintf(stderr,
- _("Usage: kdb5_util [-x db_args]* [-r realm] [-d dbname] "
- "[-k mkeytype] [-M mkeyname]\n"
- "\t [-kv mkeyVNO] [-sf stashfilename] [-m] cmd "
- "[cmd_options]\n"
+ _("Usage: kdb5_util [-r realm] [-d dbname] "
+ "[-k mkeytype] [-kv mkeyVNO]\n"
+ "\t [-M mkeyname] [-m] [-sf stashfilename] "
+ "[-P password]\n"
+ "\t [-x db_args]* cmd [cmd_options]\n"
"\tcreate [-s]\n"
"\tdestroy [-f]\n"
"\tstash [-f keyfile]\n"