Operating system Linux Linux how to change password?

How to change the password under linux? The most common ways of the command line looks as following:

passwd   Change your own password.

passwd sleepy   Change sleepy's password.

passwd -d sleepy   Delete sleepy's password.

When these commands to change your password, you need to enter your old password and new passwords. The new password should be at least six characters long and a little complex.

If you share your Linux system with multiple users, you might do some protection to prevent the passwords changed by others. Of course, if you are the superuser, you can change the common users' password easilly.

For changing the Super User Password Go into single mode and change the root password.

$ sudo su
***prompt will change***
# passwd
# exit

from the preceding commands that users can go around changing each other's passwords at will, but that's not the case. Only a superuser (such as root) can change or delete another user's password.

Operating system - Linux