Ubuntu – Completely uninstall Kerberos on Ubuntu Server

kerberosUbuntu

I am experimenting with Kerberos and messed up the installation. I've tried editing the config files but have had no joy in resolving my problems which currently consist of not being able to initialise the realm and not being able to create an admin directory.

I've tried sudo apt-get purge krb5-kdc krb5-admin-server which removes the packages. But when I try to reinstall, it finds residual config files (that I can't find anywhere) on the system and I have the same errors. A reboot of the server doesn't resolve the issue either.

This is an experimental machine and I have no backups (maybe I should). How do I get back to a pre-kerberos state?

Best Answer

Please follow the below setups to completely remove.

  • sudo apt purge -y krb5-kdc krb5-admin-server krb5-config krb5-locales krb5-user krb5.conf

  • sudo rm -rf /var/lib/krb5kdc

Related Topic