The kdb_destroy utility securely removes the principal database. This utility
runs on the primary and secondary security servers. If you run this
utility using command-line options, it prompts you with a confirmation
message and then removes the default principal database, /krb5/prinicpal. To confirm the deletion, type yes otherwise, kdb_destroy returns the message Database not destroyed.
This tool destroys only the principal.* files. You must handle the other files that store the
principal information separately. To destroy admin_acl_file, manually delete it. To destroy the key table files,
use the ktutil tool.
To ensure that no one reads the previous contents of the database
files, kdb_destroy writes 0s (zeros) to the original files before it deletes
them.
The general syntax for destroying the Kerberos database is
as follows:
The kdb_destroy utility uses the following options:
Following is an example output of the kdb_destroy utility:
shell% kdb_destroy keyfile: /opt/krb5/.k5.DCETST3.FINANCE.BAMBI.COM Deleting KDC database stored in ‘/opt/krb5/principal’, are you sure? (type ‘yes’ to confirm)? Database destroyed! |