{"id":2353,"date":"2021-05-19T12:12:15","date_gmt":"2021-05-19T11:12:15","guid":{"rendered":"https:\/\/www.names.co.uk\/support\/?post_type=ht_kb&#038;p=2353"},"modified":"2024-10-25T12:13:49","modified_gmt":"2024-10-25T11:13:49","slug":"changing-your-root-password-on-an-ubuntu-server","status":"publish","type":"ht_kb","link":"https:\/\/www.names.co.uk\/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 by completing the following steps.<\/p>\n\n\n\n<div class=\"wp-block-nco-info-block\"><p class=\"nco-info-block-content\"><strong><strong><strong>See also:<\/strong> <\/strong><\/strong>Changing your root password on <a href=\"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-a-plesk-server\/\">Plesk<\/a> and <a href=\"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-a-cpanel-whm-server\/\">cPanel<\/a>.<\/p><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1<\/h2>\n\n\n\n<p>First of all, log in to the server via SSH.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2<\/h2>\n\n\n\n<p>When logged in, if you\u2019re using the root user you just need to type:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo passwd root<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>root@UbuntuServer:~# sudo passwd root\nNew password:\nRetype new password:\npasswd: password updated successfully\nroot@UbuntuServer:~#<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3<\/h2>\n\n\n\n<p>If you already have root permissions, you will <strong>not<\/strong> need to type \u2018<strong>sudo<\/strong>\u2019.<\/p>\n\n\n\n<p>You can also change the \u2018root\u2019 to be a different user if you\u2019ve set one up. If you type \u2018<strong>passwd<\/strong>\u2019 alone, it will change the password for your current user.<\/p>\n\n\n\n<p>Here\u2019s an example of a root user changing their own password with a shorter command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@UbuntuServer:~# passwd\nNew Password:\nRetype new password:\npasswd: password updated successfully\nroot@UbuntuServer:~#<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You can change your root password on your Ubuntu server via SSH with some simple commands by completing the following steps. Step 1 First of all, log in to the server via SSH. Step 2 When logged in, if you\u2019re using the root user you just need to type: sudo passwd root Step 3 If [&hellip;]<\/p>\n","protected":false},"author":10,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[186,140],"ht-kb-tag":[187,188,192,189,257],"class_list":["post-2353","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-self-managed-vps","ht_kb_category-servers","ht_kb_tag-puressd-vps","ht_kb_tag-self-managed","ht_kb_tag-ubuntu","ht_kb_tag-vps","ht_kb_tag-xsw"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Changing your root password on an Ubuntu server - Support Centre - names.co.uk<\/title>\n<meta name=\"description\" content=\"This article will show you how to update the root password on an Ubuntu based server via SSH.\" \/>\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.names.co.uk\/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 - names.co.uk\" \/>\n<meta property=\"og:description\" content=\"This article will show you how to update the root password on an Ubuntu based server via SSH.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Support Centre - names.co.uk\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/namesco\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-25T11:13:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.names.co.uk\/support\/wp-content\/uploads\/2021\/02\/og-support-centre.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@namesco\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\",\"url\":\"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\",\"name\":\"Changing your root password on an Ubuntu server - Support Centre - names.co.uk\",\"isPartOf\":{\"@id\":\"https:\/\/www.names.co.uk\/support\/#website\"},\"datePublished\":\"2021-05-19T11:12:15+00:00\",\"dateModified\":\"2024-10-25T11:13:49+00:00\",\"description\":\"This article will show you how to update the root password on an Ubuntu based server via SSH.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.names.co.uk\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Changing your root password on an Ubuntu server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.names.co.uk\/support\/#website\",\"url\":\"https:\/\/www.names.co.uk\/support\/\",\"name\":\"Support Centre - names.co.uk\",\"description\":\"names.co.uk Support Centre\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.names.co.uk\/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 - names.co.uk","description":"This article will show you how to update the root password on an Ubuntu based server via SSH.","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.names.co.uk\/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 - names.co.uk","og_description":"This article will show you how to update the root password on an Ubuntu based server via SSH.","og_url":"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/","og_site_name":"Support Centre - names.co.uk","article_publisher":"https:\/\/www.facebook.com\/namesco","article_modified_time":"2024-10-25T11:13:49+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.names.co.uk\/support\/wp-content\/uploads\/2021\/02\/og-support-centre.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@namesco","twitter_misc":{"Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/","url":"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/","name":"Changing your root password on an Ubuntu server - Support Centre - names.co.uk","isPartOf":{"@id":"https:\/\/www.names.co.uk\/support\/#website"},"datePublished":"2021-05-19T11:12:15+00:00","dateModified":"2024-10-25T11:13:49+00:00","description":"This article will show you how to update the root password on an Ubuntu based server via SSH.","breadcrumb":{"@id":"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.names.co.uk\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.names.co.uk\/support\/"},{"@type":"ListItem","position":2,"name":"Changing your root password on an Ubuntu server"}]},{"@type":"WebSite","@id":"https:\/\/www.names.co.uk\/support\/#website","url":"https:\/\/www.names.co.uk\/support\/","name":"Support Centre - names.co.uk","description":"names.co.uk Support Centre","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.names.co.uk\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"https:\/\/www.names.co.uk\/support\/wp-json\/wp\/v2\/ht-kb\/2353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.names.co.uk\/support\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.names.co.uk\/support\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.names.co.uk\/support\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.names.co.uk\/support\/wp-json\/wp\/v2\/comments?post=2353"}],"version-history":[{"count":5,"href":"https:\/\/www.names.co.uk\/support\/wp-json\/wp\/v2\/ht-kb\/2353\/revisions"}],"predecessor-version":[{"id":2411,"href":"https:\/\/www.names.co.uk\/support\/wp-json\/wp\/v2\/ht-kb\/2353\/revisions\/2411"}],"wp:attachment":[{"href":"https:\/\/www.names.co.uk\/support\/wp-json\/wp\/v2\/media?parent=2353"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.names.co.uk\/support\/wp-json\/wp\/v2\/ht-kb-category?post=2353"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.names.co.uk\/support\/wp-json\/wp\/v2\/ht-kb-tag?post=2353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}