userpasswd command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
userpasswd: command not found
or when using sudo you get the following error message
sudo: userpasswd: command not found
Solutions to userpasswd: command not found
How To Fix userpasswd: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu userpasswd is provided by usermode package.
usermode is:
The usermode package contains several graphical tools for users: userinfo, usermount and userpasswd. Userinfo allows users to change their finger information. Usermount lets users mount, unmount, and format filesystems. Userpasswd allows users to change their passwords.
Install the usermode package if you would like to provide users with graphical tools for certain account management tasks.
To fix this problem, we can install more using the command below.
sudo apt-get -y install usermode
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install usermode.
sudo apt -y install usermode
Or if you have aptitude installed you can use the following command.
sudo aptitude install usermode
Summary
In this tutorial we learn how to fix userpasswd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.