{"id":15096,"date":"2022-02-14T15:30:29","date_gmt":"2022-02-14T15:30:29","guid":{"rendered":"https:\/\/linuxways.net\/?p=15096"},"modified":"2022-02-15T18:13:04","modified_gmt":"2022-02-15T18:13:04","slug":"how-to-change-the-root-password-in-linux-mint-20","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/mint\/how-to-change-the-root-password-in-linux-mint-20\/","title":{"rendered":"How to Change the Root Password in Linux Mint 20"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>Whenever you want to perform a task on your operating system that requires root-level permissions, then you must know the root password of your system. Otherwise, you will never be able to log in as the root user. However, at times, it happens that your root password is lost or you do not know it in the first place. In this situation, you should have a mechanism for recovering your forgotten root password, or in other words, you should be able to change your root password. In this guide, we will be sharing with you the two methods of changing the root password on a Linux Mint 20.3 system.<\/p>\n<h2>Changing the Root Password in Linux Mint:<\/h2>\n<p>There are two most commonly used methods for changing the root password on Linux Mint. The first method can be used regardless of whether you have changed the root password of your system earlier or not whereas the second method can only be used if you have already changed your root password at least for once and you know it well.<\/p>\n<h3>Method # 1: Changing the Root Password with the \u201csudo\u201d Permissions:<\/h3>\n<p>This method can easily be used for changing a forgotten root password or for setting up a root password for the first time. All you need to know is the \u201csudo\u201d password of your system. You need to execute the following command first:<\/p>\n<pre><strong>$ sudo passwd root<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"358\" height=\"23\" class=\"wp-image-15097\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-332.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-332.png 358w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-332-300x19.png 300w\" sizes=\"auto, (max-width: 358px) 100vw, 358px\" \/><\/strong><\/p>\n<p>As soon as you will run this command, you will be asked to enter the \u201csudo\u201d password of your system. After entering that password, you need to press the Enter key.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"360\" height=\"45\" class=\"wp-image-15098\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-333.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-333.png 360w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-333-300x38.png 300w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/><\/p>\n<p>Right after entering the \u201csudo\u201d password of your system, you will be asked to enter a new root password for your system as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"371\" height=\"62\" class=\"wp-image-15099\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-334.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-334.png 371w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-334-300x50.png 300w\" sizes=\"auto, (max-width: 371px) 100vw, 371px\" \/><\/p>\n<p>When you will enter this password, you will be asked to re-enter it for confirmation as shown in the image that follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"383\" height=\"79\" class=\"wp-image-15100\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-335.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-335.png 383w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-335-300x62.png 300w\" sizes=\"auto, (max-width: 383px) 100vw, 383px\" \/><\/p>\n<p>Once you will do that, a success message will be displayed to you on the terminal that will confirm that the root password of your Linux Mint system has been changed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"437\" height=\"109\" class=\"wp-image-15101\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-336.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-336.png 437w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-336-300x75.png 300w\" sizes=\"auto, (max-width: 437px) 100vw, 437px\" \/><\/p>\n<h3>Method # 2: Changing the Root Password with the \u201croot\u201d Permissions:<\/h3>\n<p>This method can only be used if you know your current root password. First, you will have to execute the following command:<\/p>\n<pre><strong>$ su root<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"286\" height=\"22\" class=\"wp-image-15102\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-337.png\" \/><\/strong><\/p>\n<p>When you will run this command, you will be asked to enter the current root password of your system as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"289\" height=\"38\" class=\"wp-image-15103\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-338.png\" \/><\/p>\n<p>After adding the current root password correctly, you will gain the root permissions. Then, you will need to run the command that follows:<\/p>\n<pre><strong>$ passwd<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"359\" height=\"61\" class=\"wp-image-15104\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-339.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-339.png 359w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-339-300x51.png 300w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/strong><\/p>\n<p>When you will execute the above-mentioned command, you will be asked to enter the new root password as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"388\" height=\"78\" class=\"wp-image-15105\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-340.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-340.png 388w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-340-300x60.png 300w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><\/p>\n<p>After entering this password, you will be asked to re-enter it for confirmation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"383\" height=\"95\" class=\"wp-image-15106\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-341.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-341.png 383w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-341-300x74.png 300w\" sizes=\"auto, (max-width: 383px) 100vw, 383px\" \/><\/p>\n<p>Again, if both these passwords will match, a success message will be displayed on the terminal as shown in the image that follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"379\" height=\"129\" class=\"wp-image-15107\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-342.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-342.png 379w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-342-300x102.png 300w\" sizes=\"auto, (max-width: 379px) 100vw, 379px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>This guide was aimed to teach you the two methods of changing the root password of a Linux Mint 20.3 system. With the help of the first method, you can change your root password even if you do not know your current root password, however, the second method can be used only if you are well aware of your current root password.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction: Whenever you want to perform a task on your operating system that requires root-level permissions, then you must know the root password of your system. Otherwise, you&hellip;<\/p>","protected":false},"author":1,"featured_media":15290,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[129,697],"class_list":["post-15096","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mint","tag-linux-mint-20","tag-root"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/15096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=15096"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/15096\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/15290"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=15096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=15096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=15096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}