{"id":256,"date":"2022-02-10T09:03:41","date_gmt":"2022-02-10T09:03:41","guid":{"rendered":"https:\/\/www.simplyhosting.com\/support\/?post_type=ht_kb&#038;p=256"},"modified":"2022-02-16T10:19:32","modified_gmt":"2022-02-16T10:19:32","slug":"changing-your-root-password-on-an-ubuntu-server","status":"publish","type":"ht_kb","link":"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/","title":{"rendered":"Changing your root password on an Ubuntu server."},"content":{"rendered":"\n<p>You can change your root password on your Ubuntu server via SSH with some simple commands. <\/p>\n\n\n\n<p>If you have <a href=\"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-a-plesk-server\/\">Plesk<\/a> or <a href=\"https:\/\/www.simplyhosting.com\/support\/articles\/changing-the-root-password-on-a-cpanel-whm-server\/\">cPanel<\/a> installed, you can do so there instead, but otherwise you can complete the following steps.<br><br>1. First of all, log in to the server via SSH.<br>2. When logged in, if you\u2019re using the root user you just need to type;<br><strong>sudo passwd root<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"186\" src=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-ssh-root.png\" alt=\"\" class=\"wp-image-257\" srcset=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-ssh-root.png 560w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-ssh-root-300x100.png 300w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-ssh-root-50x17.png 50w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/figure><\/div>\n\n\n\n<p>If you already have root permissions, you will <strong>not<\/strong> need to type \u2018sudo\u2019. You can also change the \u2018root\u2019 to be a different user if you\u2019ve set one up. If you type \u2018passwd\u2019 alone, it will change the password for your current user. Here\u2019s an example of a root user changing their own password with a shorter command;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"554\" height=\"180\" src=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-root.png\" alt=\"\" class=\"wp-image-258\" srcset=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-root.png 554w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-root-300x97.png 300w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-root-50x16.png 50w\" sizes=\"auto, (max-width: 554px) 100vw, 554px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"get-in-touch\"><strong>Get in touch<\/strong><\/h2>\n\n\n\n<p>If you need advice on Ubuntu, we\u2019re here to help.<\/p>\n\n\n\n<p><strong>Call us on 0333 247 0222: <\/strong>Monday &#8211; Friday, 9am \u2013 5.30pm.<\/p>\n\n\n\n<p id=\"chat-to-us-on-livechat-monday-friday-9am-5-30pm\"><strong>Chat with us on LiveChat:<\/strong> Monday &#8211; Friday, 9am &#8211; 5.30pm.<\/p>\n\n\n\n<p id=\"write-to-us-send-us-a-support-ticket-from-your-simply-portal-and-we-ll-get-back-to-you-as-soon-as-we-can-https-portal-simplyhosting-com-site-login\"><strong>Write to us:<\/strong> Send us a support ticket from your <a href=\"https:\/\/portal.simplyhosting.com\/site\/login\/\">Simply portal<\/a> and we\u2019ll get back to you as soon as we can. <\/p>\n\n\n\n<p>If you don\u2019t have an account with Simply Hosting yet, you can also send our <a href=\"https:\/\/www.simplyhosting.com\/info\/contact-us\">Sales team<\/a> an enquiry and we&#8217;ll get back to you between <strong>9am<\/strong> and <strong>5.30pm<\/strong>, <strong>Monday<\/strong> to <strong>Friday<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can change your root password on your Ubuntu server via SSH with some simple commands. If you have Plesk or cPanel installed, you can do so there instead, but otherwise you can complete the following steps. 1. First of all, log in to the server via SSH.2. When logged in, if you\u2019re using the [&hellip;]<\/p>\n","protected":false},"author":10,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[24,20],"ht-kb-tag":[57,59],"class_list":["post-256","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-control-panel-os","ht_kb_category-ssl-security","ht_kb_tag-password","ht_kb_tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Changing your root password on an Ubuntu server. - Support Centre - Simply Hosting &amp; Servers<\/title>\n<meta name=\"description\" content=\"How to change your root password on an Ubuntu server - Simplyhosting.com\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Changing your root password on an Ubuntu server. - Support Centre - Simply Hosting &amp; Servers\" \/>\n<meta property=\"og:description\" content=\"How to change your root password on an Ubuntu server - Simplyhosting.com\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Support Centre - Simply Hosting &amp; Servers\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-16T10:19:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-ssh-root.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\",\"url\":\"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\",\"name\":\"Changing your root password on an Ubuntu server. - Support Centre - Simply Hosting &amp; Servers\",\"isPartOf\":{\"@id\":\"https:\/\/www.simplyhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-ssh-root.png\",\"datePublished\":\"2022-02-10T09:03:41+00:00\",\"dateModified\":\"2022-02-16T10:19:32+00:00\",\"description\":\"How to change your root password on an Ubuntu server - Simplyhosting.com\",\"breadcrumb\":{\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#primaryimage\",\"url\":\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-ssh-root.png\",\"contentUrl\":\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-ssh-root.png\",\"width\":560,\"height\":186},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.simplyhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Changing your root password on an Ubuntu server.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.simplyhosting.com\/support\/#website\",\"url\":\"https:\/\/www.simplyhosting.com\/support\/\",\"name\":\"Support Centre - Simply Hosting &amp; Servers\",\"description\":\"Simply Hosting &amp; Servers Support Centre\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.simplyhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Changing your root password on an Ubuntu server. - Support Centre - Simply Hosting &amp; Servers","description":"How to change your root password on an Ubuntu server - Simplyhosting.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/","og_locale":"en_GB","og_type":"article","og_title":"Changing your root password on an Ubuntu server. - Support Centre - Simply Hosting &amp; Servers","og_description":"How to change your root password on an Ubuntu server - Simplyhosting.com","og_url":"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/","og_site_name":"Support Centre - Simply Hosting &amp; Servers","article_modified_time":"2022-02-16T10:19:32+00:00","og_image":[{"url":"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-ssh-root.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/","url":"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/","name":"Changing your root password on an Ubuntu server. - Support Centre - Simply Hosting &amp; Servers","isPartOf":{"@id":"https:\/\/www.simplyhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#primaryimage"},"image":{"@id":"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-ssh-root.png","datePublished":"2022-02-10T09:03:41+00:00","dateModified":"2022-02-16T10:19:32+00:00","description":"How to change your root password on an Ubuntu server - Simplyhosting.com","breadcrumb":{"@id":"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#primaryimage","url":"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-ssh-root.png","contentUrl":"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/ubuntu-password-change-ssh-root.png","width":560,"height":186},{"@type":"BreadcrumbList","@id":"https:\/\/www.simplyhosting.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.simplyhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Changing your root password on an Ubuntu server."}]},{"@type":"WebSite","@id":"https:\/\/www.simplyhosting.com\/support\/#website","url":"https:\/\/www.simplyhosting.com\/support\/","name":"Support Centre - Simply Hosting &amp; Servers","description":"Simply Hosting &amp; Servers Support Centre","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.simplyhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb\/256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/comments?post=256"}],"version-history":[{"count":3,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb\/256\/revisions"}],"predecessor-version":[{"id":338,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb\/256\/revisions\/338"}],"wp:attachment":[{"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/media?parent=256"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb-category?post=256"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb-tag?post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}