{"id":1446,"date":"2021-05-19T11:18:51","date_gmt":"2021-05-19T11:18:51","guid":{"rendered":"https:\/\/www.lcn.com\/support\/?post_type=ht_kb&#038;p=1446"},"modified":"2021-05-19T11:27:50","modified_gmt":"2021-05-19T11:27:50","slug":"changing-your-root-password-on-an-ubuntu-server","status":"publish","type":"ht_kb","link":"https:\/\/www.lcn.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 whenever you need to by completing the following steps.<\/p>\n\n\n\n<p><strong>See also: <\/strong>Changing your root password on <a href=\"https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-a-plesk-server\/\">Plesk<\/a> and <a href=\"https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-a-cpanel-whm-server\/\">cPanel<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1<\/h2>\n\n\n\n<p>First, access the server via the SSH interface.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2<\/h2>\n\n\n\n<p>If you are logged in as the root user, then you only need to type:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo passwd root<\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>As shown in the example below:<\/p>\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<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3<\/h2>\n\n\n\n<p>If you are logged in as a user that already has root permissions, then you will <strong>not<\/strong> need to type &#8216;<strong>sudo<\/strong>&#8216;.<\/p>\n\n\n\n<p>You can also set the &#8216;root&#8217; to be a different user if you have multiple users set up. <\/p>\n\n\n\n<p>In this case, you can type &#8216;<strong>passwd<\/strong>&#8216; alone and it will change the password for the current user. <\/p>\n\n\n\n<p>Here&#8217;s an example of a use with root privileges changing their own password with the 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 whenever you need to by completing the following steps. See also: Changing your root password on Plesk and cPanel. Step 1 First, access the server via the SSH interface. Step 2 If you are logged in as the root [&hellip;]<\/p>\n","protected":false},"author":9,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[30],"ht-kb-tag":[34,35,39,36],"class_list":["post-1446","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-servers","ht_kb_tag-puressd-vps","ht_kb_tag-self-managed","ht_kb_tag-ubuntu","ht_kb_tag-vps"],"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 - Customer Support Guides - LCN<\/title>\n<meta name=\"description\" content=\"This article will walk you through updating the root password on your Ubuntu based server.\" \/>\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.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Changing your root password on an Ubuntu server - Customer Support Guides - LCN\" \/>\n<meta property=\"og:description\" content=\"This article will walk you through updating the root password on your Ubuntu based server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Customer Support Guides - LCN\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/lcndotcom\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-19T11:27:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/support-facebook-feed.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@lcndotcom\" \/>\n<meta name=\"twitter:label1\" content=\"Est. 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.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\",\"url\":\"https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\",\"name\":\"Changing your root password on an Ubuntu server - Customer Support Guides - LCN\",\"isPartOf\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#website\"},\"datePublished\":\"2021-05-19T11:18:51+00:00\",\"dateModified\":\"2021-05-19T11:27:50+00:00\",\"description\":\"This article will walk you through updating the root password on your Ubuntu based server.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.lcn.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Changing your root password on an Ubuntu server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.lcn.com\/support\/#website\",\"url\":\"https:\/\/www.lcn.com\/support\/\",\"name\":\"Customer Support Guides - LCN\",\"description\":\"- LCN\",\"publisher\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.lcn.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.lcn.com\/support\/#organization\",\"name\":\"LCN.com\",\"url\":\"https:\/\/www.lcn.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg\",\"contentUrl\":\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg\",\"width\":461,\"height\":461,\"caption\":\"LCN.com\"},\"image\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/lcndotcom\",\"https:\/\/x.com\/lcndotcom\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Changing your root password on an Ubuntu server - Customer Support Guides - LCN","description":"This article will walk you through updating the root password on your Ubuntu based server.","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.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/","og_locale":"en_US","og_type":"article","og_title":"Changing your root password on an Ubuntu server - Customer Support Guides - LCN","og_description":"This article will walk you through updating the root password on your Ubuntu based server.","og_url":"https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/","og_site_name":"Customer Support Guides - LCN","article_publisher":"https:\/\/www.facebook.com\/lcndotcom","article_modified_time":"2021-05-19T11:27:50+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/support-facebook-feed.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@lcndotcom","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/","url":"https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/","name":"Changing your root password on an Ubuntu server - Customer Support Guides - LCN","isPartOf":{"@id":"https:\/\/www.lcn.com\/support\/#website"},"datePublished":"2021-05-19T11:18:51+00:00","dateModified":"2021-05-19T11:27:50+00:00","description":"This article will walk you through updating the root password on your Ubuntu based server.","breadcrumb":{"@id":"https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.lcn.com\/support\/articles\/changing-your-root-password-on-an-ubuntu-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lcn.com\/support\/"},{"@type":"ListItem","position":2,"name":"Changing your root password on an Ubuntu server"}]},{"@type":"WebSite","@id":"https:\/\/www.lcn.com\/support\/#website","url":"https:\/\/www.lcn.com\/support\/","name":"Customer Support Guides - LCN","description":"- LCN","publisher":{"@id":"https:\/\/www.lcn.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lcn.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.lcn.com\/support\/#organization","name":"LCN.com","url":"https:\/\/www.lcn.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg","contentUrl":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg","width":461,"height":461,"caption":"LCN.com"},"image":{"@id":"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/lcndotcom","https:\/\/x.com\/lcndotcom"]}]}},"_links":{"self":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/1446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/comments?post=1446"}],"version-history":[{"count":5,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/1446\/revisions"}],"predecessor-version":[{"id":1481,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/1446\/revisions\/1481"}],"wp:attachment":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/media?parent=1446"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb-category?post=1446"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb-tag?post=1446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}