How to Change a User Password in Linux

The 1 single command for changing user passwords in Linux

Photo by ThisIsEngineering from Pexels

Changing your own password

$ passwd 

Changing the root password

$ sudo passwd root
$ su
# passwd
exit

Changing passwords for regular users

$ sudo passwd linga

Getting help

man passwd

Final thoughts

I develop software by profession. My interests include: history, economics, politics & enterprise-architecture. I am a child of God.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store