The way to Change Your Unix Password

Do you need to change your password on Linux or other Unix-like operating systems? Here's what you need to know.

Change Unix password 880

We all know the role of a password in protecting your digital privacy. A strong password is the first level of defense that prevents intruders from entering your system. Hence, protecting your computer with a password should be paramount for everyone.

Unix-based operating systems offer robust capabilities when it comes to a user's password and security. But how do you use these advanced features to secure your system?

Unix vs. Linux

Many people get confused when someone uses the terms Unix and Linux in a similar context. It doesn't matter if you change passwords on Linux or Unix, the steps are the same. Although these two operating systems have a similar architecture and command structure, in reality they are very different from each other.

Unix is ​​an operating system that was developed by Ken Thompson and Dennis Ritchie in the late 1960s. It's mainly designed for portability, multithreading, and quick changes. Unlike Linux, Unix is ​​proprietary software known for its powerful command line interface.

Linux, on the other hand, is a family of open source operating systems that are "Unix-like". Linus Torvalds developed this operating system in 1991. It is referred to as Unix-like operating systems because Linux was heavily inspired by Unix. More than 600 community-driven Linux distributions are available free of charge on the Internet.

Change your own password under Unix

On most Unix-based systems, users can use the to change passwords passwd Command. To change your own password on Unix, open your terminal by pressing Ctrl + Old + T.. To change your password, enter:


You will see an output that looks something like this. First enter the current password, then enter your new password twice to complete the process.

(current) UNIX password:
Enter a new UNIX password:
Enter the new UNIX password again:
passwd: Password updated successfully

You don't see any of the characters you typed on your screen. Unix-based operating systems offer this unique opportunity to protect users from surfing on their shoulder.

Related: How to Create a Strong Password

Change the root password

Only a root user can change the root password on a Unix computer. Enter the following to change your current user to root su – in your terminal and press Enter. Then enter the root password to confirm the operation.

Now that you are root, you can change your password just by typing it in passwd in your terminal.

Change another user's password

Root users have the right to change the passwords of other users in the system. To do this, open your terminal by pressing Ctrl + Old + T.. Then change the password with:

passwd username

You will see the following output on your system display. Enter the new password twice to confirm the change.

Enter a new UNIX password:
Enter the new UNIX password again:
passwd: Password updated successfully

Manage user passwords on Unix

Unix users can easily change their passwords with the passwd Command. Learn more about it passwdyou can check the command instruction:

Man passwd

Linux and Unix may have some similarities when it comes to system commands, but in many other ways they are two different operating systems.


Unix vs. Linux: The Differences Between And Why It Matters

Before the development of Linux, the computing world was dominated by Unix. What is the difference between Linux and Unix?

About the author

Deepesh Sharma
(13 articles published)

Deepesh is Staff Writer for Linux at MUO. He has been writing informational content on the Internet for over 3 years. In his spare time he enjoys writing, listening to music and playing the guitar.

From Deepesh Sharma

Subscribe to our newsletter

Sign up for our newsletter to receive tech tips, reviews, free e-books, and exclusive offers!

One more step …!

Please confirm your email address in the email we just sent you.

. "border =" 0

Leave a Reply

Your email address will not be published. Required fields are marked *