Linux

How to change root password on centos using ssh

In this article, we will learn how to change root password account on CentOS operating system. 

The root account is a special user account on Linux that has access to all files, all commands and that can pretty much do anything on a Linux server. Therefore root account is the highest authority account on the system. It has control over everything, can delete and modify anything, and has permission to run any program.

Prerequisites

  1. You should have a VPS or Dedicated Server with Linux CentOS 7 installed.
  2. You should have access to your server or to your client control panel to open a KVM console.

Steps to Change Linux/Centos root password via SSH

First login to your server using SSH connection , then simply you can run the following commands to change your root or current password as bellow:
    
     passwd
    
   
Then you will prompt to Type your new password and , Retype your new password as bellow:
    
     Changing password for user root.
New password:
Retype New password:
    
   

As a result your new password should work fine.

Recommendation : you should set a strong password for the root account. It should be at least 10 characters, with special characters, uppercase and lowercase letters.Also, it should not contain any words that are easily found in a dictionary.

XsoftHost Support

Share

Recent Posts

Add Extra IP addresses to server configuration On Ubuntu 17.10 and later

Each failover IP address will need its own line in the configuration file. The configuration…

3 years ago

Create RAID Arrays with mdadm on Ubuntu

What is mdadm? The mdadm utility can be used to create and manage storage arrays…

4 years ago

How to change the maximum upload file size for PHP

There are several scenarios that you might need to increase or decrease your php maximum…

6 years ago

How to install Let’s Encrypt Plugin in WHM/cPanel

What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…

6 years ago

How to install python in my cPanel and add py extension

Python normally installed on all cPanel hosting server because most of Centos/red hat update system…

6 years ago

How to install and enable GUI GNOME Desktop on centos 7

Usually CentOS 7 comes in a numbers of variants, For most users, there are two…

6 years ago