How to recover from a lost Kerberos password for admin

Ever lost your password for the admin principle on your Linux Kerberos server? It is quite easy to recover by just setting a new one.

You just need to log in to your KDC and proceed as follows:

[root@ipa1 ~]# kadmin.local
Authenticating as principal admin/admin@EXAMPLE.COM with password.
kadmin.local:  change_password admin@EXAMPLE.COM
Enter password for principal "admin@EXAMPLE.COM": 
Re-enter password for principal "admin@EXAMPLE.COM": 
Password for "admin@EXAMPLE.COM" changed.
kadmin.local: q
[root@ipa1 ~]#

Now enter kinit to get a Kerberos ticket.

Have fun 🙂

2 thoughts on “How to recover from a lost Kerberos password for admin

  1. Is there a way to reset hard disk password on Fedora?

    At the moment my computer runs Fedora from a flash stick but I can’t install it on Hard Disk because of the los tHD password. The HD is recognized but that is it.
    This laptop use to run Vista and hard disk password is not recognized.
    Fedora is nice and fast – but I can’t do anything with the HD (repartition, format,et.set.)
    Help!

    • If you do not care about the data on the disk, you can try to delete the MBR and the partition table: dd if=/dev/zero of=/dev/sda bs=512 count=1

Leave a Reply

Your email address will not be published. Required fields are marked *