13 March 2021

passwd is the command in linux to change password for your user or for other users if you are root,
Example as simple user:
*

$ passwd --status
ipsedixit P 2021-03-10 0 99999 7 -1

*

$ passwd
New password: 
Retype password: 
passwd: password updated successfully

*

$ passwd --status
ipsedixit P 2021-03-11 0 99999 7 -1

Example as root:
*

# passwd ipsedixit --status
ipsedixit P 2021-03-10 0 99999 7 -1

*

# passwd ipsedixit
New password: 
Retype password: 
passwd: password updated successfully

*

# passwd ipsedixit --status
ipsedixit P 2021-03-11 0 99999 7 -1

Some Notes:
* The best way to understand a command and its options is to use man page :)

man passwd
docker run -it ubuntu /bin/bash