Changing password in Linux servers

To change your own login password, use the following command:

passwd

To change passwords for other accounts in your server, use this command:

passwd otheraccountname

For both commands, you should be seeing an output like this:

Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Make sure not to have your password too simple, and recommended to mix in at least 1 upper case alphabet, 1 lower case alphabet, punctuation marks and special letters to lower possibilities of accounts being compromised.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to turn firewalld on and off in CentOS 7

If you happen to run into problems connecting to your server via SSH, or wish to test other...

Installing Linux, Apache, MySQL, PHP (LAMP) Stack On CentOS 7

A LAMP stack is a collection of open source software (Linux, Apache, MySQL, PHP), also known as a...

Installing Linux, Apache, MySQL, PHP (LAMP) Stack On Ubuntu 16.04

A LAMP stack is a collection of open source software (Linux, Apache, MySQL, PHP), also known as a...