{"id":1307,"date":"2017-07-30T12:27:05","date_gmt":"2017-07-30T12:27:05","guid":{"rendered":"https:\/\/www.xsofthost.com\/help\/?p=1307"},"modified":"2021-03-15T23:56:04","modified_gmt":"2021-03-15T23:56:04","slug":"change-root-password-on-centos-via-ssh","status":"publish","type":"post","link":"https:\/\/www.xsofthost.com\/help\/change-root-password-on-centos-via-ssh\/","title":{"rendered":"How to change root password on centos using ssh"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1307\" class=\"elementor elementor-1307\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0d705d9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0d705d9\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b3fc641\" data-id=\"b3fc641\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-14f3ed9 elementor-widget elementor-widget-text-editor\" data-id=\"14f3ed9\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>In this article, we will learn how to\u00a0<span style=\"font-weight: bold;\">change root password<\/span>\u00a0account on CentOS operating system.\u00a0<\/p>\n<p>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.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8b416a5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8b416a5\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ae01678\" data-id=\"ae01678\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5698334 elementor-widget elementor-widget-heading\" data-id=\"5698334\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Prerequisites<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b0b6b7f elementor-widget elementor-widget-text-editor\" data-id=\"b0b6b7f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol>\n<li>You should have a <a href=\"https:\/\/www.xsofthost.com\/vps-ssd\/\">VPS<\/a>\u00a0or <a href=\"https:\/\/www.xsofthost.com\/dedicated-servers\/\">Dedicated Server<\/a> with Linux CentOS 7 installed.<\/li>\n<li>You should have access to your server or to your client control panel to open a KVM console.<\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a91d971 elementor-widget elementor-widget-heading\" data-id=\"a91d971\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Steps to Change  Linux\/Centos root password via SSH<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8394bfe elementor-widget elementor-widget-text-editor\" data-id=\"8394bfe\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\tFirst login to your server using SSH connection , then simply you can run the following commands to change your root or current password as bellow:\n\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1cec760 elementor-widget elementor-widget-code-highlight\" data-id=\"1cec760\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>passwd<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3115647 elementor-widget elementor-widget-text-editor\" data-id=\"3115647\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\tThen you will prompt to Type your new password and , Retype your new password as bellow:\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-011abca elementor-widget elementor-widget-code-highlight\" data-id=\"011abca\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>Changing password for user root.\nNew password:\nRetype New password:<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2a360a0 elementor-widget elementor-widget-text-editor\" data-id=\"2a360a0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>As a result your new password should work fine.<\/p>\n<p><b> Recommendation<\/b> : you should set a strong password for the root account. It should be at least 10 characters, with special characters, uppercase and lowercase letters.<span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-weight: var( --e-global-typography-text-font-weight );\">Also, it should not contain any words that are easily found in a dictionary.<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>In this article, we will learn how to\u00a0change root password\u00a0account on CentOS operating system.\u00a0 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 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":859,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41],"tags":[181,178,50,149,74],"_links":{"self":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1307"}],"collection":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/comments?post=1307"}],"version-history":[{"count":85,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1307\/revisions"}],"predecessor-version":[{"id":2370,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1307\/revisions\/2370"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media\/859"}],"wp:attachment":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media?parent=1307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/categories?post=1307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/tags?post=1307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}