How To Install libpam-barada on Kali Linux

In this tutorial we learn how to install libpam-barada on Kali Linux. libpam-barada is PAM module to provide two-factor authentication based on HOTP

Introduction

In this tutorial we learn how to install libpam-barada on Kali Linux.

What is libpam-barada

libpam-barada is:

Use HOTP (RFC4226) two-factor authentication with PAM.

In addition to a normal password, users are also assigned a 128 bit key and arbitrary-length PIN number. Every time you’d like to login using a OTP, you calculate a secure hash based on your assigned PIN and an increasing counter, the result of which is a six character one time password.

While this module could be used in conjunction with many different client devices, it was written specifically with Android devices in mind. There is companion software which runs on Android, so that your phone essentially becomes a SecureID token. All you need to do is open up the software, type in your PIN, and you get back a 6-character number that you can use to login to your system.

There are three methods to install libpam-barada on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libpam-barada Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libpam-barada using apt-get by running the following command:

sudo apt-get -y install libpam-barada

Install libpam-barada Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libpam-barada using apt by running the following command:

sudo apt -y install libpam-barada

Install libpam-barada Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libpam-barada using aptitude by running the following command:

sudo aptitude -y install libpam-barada

How To Uninstall libpam-barada on Kali Linux

To uninstall only the libpam-barada package we can use the following command:

sudo apt-get remove libpam-barada

Uninstall libpam-barada And Its Dependencies

To uninstall libpam-barada and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libpam-barada

Remove libpam-barada Configurations and Data

To remove libpam-barada configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libpam-barada

Remove libpam-barada configuration, data, and all of its dependencies

We can use the following command to remove libpam-barada configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libpam-barada

Dependencies

libpam-barada have the following dependencies:

References

Summary

In this tutorial we learn how to install libpam-barada package on Kali Linux using different package management tools: apt, apt-get and aptitude.