How To Install libpam-otpw on Kali Linux

In this tutorial we learn how to install libpam-otpw on Kali Linux. libpam-otpw is Use OTPW for PAM authentication

Introduction

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

What is libpam-otpw

libpam-otpw is:

OTPW is a one-time password system which is robust against the password list being stolen and race for the last digit attacks.

This package contains the PAM library to use OTPW in any program which uses PAM.

There are three methods to install libpam-otpw 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-otpw 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-otpw using apt-get by running the following command:

sudo apt-get -y install libpam-otpw

Install libpam-otpw Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libpam-otpw

Install libpam-otpw 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-otpw using aptitude by running the following command:

sudo aptitude -y install libpam-otpw

How To Uninstall libpam-otpw on Kali Linux

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

sudo apt-get remove libpam-otpw

Uninstall libpam-otpw And Its Dependencies

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

sudo apt-get -y autoremove libpam-otpw

Remove libpam-otpw Configurations and Data

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

sudo apt-get -y purge libpam-otpw

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

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

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

Dependencies

libpam-otpw have the following dependencies:

References

Summary

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