checkpw command not found

In this troubleshooting guide we learn how to fix checkpw command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

checkpw: command not found

or when using sudo you get the following error message

sudo: checkpw: command not found

Solutions to checkpw: command not found

How To Fix checkpw: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu checkpw is provided by checkpw package.

checkpw is:

checkpw is an implementation of the checkpassword interface that checks a password against a ``.password’’ file in the user’s Maildir. The password file has read and write permissions to the user only.

The code is in the public domain.

The original checkpassword program and interface specification is written by D. J. Bernstein: http://cr.yp.to/checkpwd.html

To fix this problem, we can install more using the command below.

sudo apt-get -y install checkpw

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install checkpw.

sudo apt -y install checkpw

Or if you have aptitude installed you can use the following command.

sudo aptitude install checkpw

Summary

In this tutorial we learn how to fix checkpw command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.