{"id":24205,"date":"2024-01-31T14:08:09","date_gmt":"2024-01-31T14:08:09","guid":{"rendered":"https:\/\/linuxways.net\/?p=24205"},"modified":"2024-01-31T14:08:09","modified_gmt":"2024-01-31T14:08:09","slug":"set-forgotten-password-kali-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/kali-linux\/set-forgotten-password-kali-linux\/","title":{"rendered":"How to Set Forgotten Password on Kali Linux"},"content":{"rendered":"<p>Setting up a strong password is crucial for ensuring your system security since it will help protect your data from unauthorized access. A good password contains a mixture of letters, numbers and symbolic representations. However, sometimes the user may forget the password that prevents them from accessing the system. In that case, they are forced to install the operating system from scratch because they are unable to find methods to change the password.<\/p>\n<p>If you are using the Kali Linux system, read this guide to find the method to set your forgotten password on your system.<\/p>\n<p>In this guide, you will learn:<\/p>\n<ul>\n<li><a href=\"#post-24205-_j2hsg4in1w88\"><strong>How to Set Forgotten Password on Kali Linux<\/strong><\/a><\/li>\n<li><a href=\"#post-24205-_lgjhuuivzjdz\"><strong>Conclusion<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-24205-_j2hsg4in1w88\"><\/a><strong>How to Set Forgotten Password on Kali Linux<\/strong><\/h2>\n<p>Setting a forgotten password on the Kali Linux system can be done easily from the main GRUB menu. The GRUB is a boot manager that allows you to load the operating system according to your choice. It scans your hard drive for a bootable operating system and loads them according to the one you need.<\/p>\n<p>By default, GRUB doesn\u2019t allow users to edit changes to the system, however, with slight modifications, you can change the settings and perform security sensitive procedures like changing the system password.<\/p>\n<p>If you are worried about setting a forgotten password on Kali Linux, simply follow the below-given steps to complete the process:<\/p>\n<p><strong>Step 1: Open GRUB Boot Menu Edit Mode on Kali Linux<\/strong><\/p>\n<p>First, you must run<strong> Kali Linux<\/strong> on your system either on a Virtual Machine or as a stand-alone operating system. Then, when you are at the <strong>GRUB Boot <\/strong>menu, simply use <strong>CTRL+E <\/strong>buttons simultaneously:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"643\" height=\"477\" class=\"wp-image-24225\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-1.png 643w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-1-300x223.png 300w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p><strong>Step 2: Search the linux Line at the GRUB Menu<\/strong><\/p>\n<p>At the <strong>GRUB Boot menu<\/strong> <strong>editing mode<\/strong>, simply scroll down and look for the boot entry starting with line <strong>linux<\/strong>. Then, navigate towards that line using the navigation arrow until you are at the boot entry option \u201c<strong>ro quiet splash<\/strong>\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"639\" height=\"480\" class=\"wp-image-24229\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-2.png 639w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-2-300x225.png 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/p>\n<p><strong>Step 3: Replace Keywords at GRUB Menu<\/strong><\/p>\n<p>At the current option, replace <strong>ro<\/strong> <strong>(read)<\/strong> with <strong>rw (read and write), <\/strong>add <strong>init=\/bin\/bash <\/strong>in place of <strong>quiet <\/strong>to force the system to start the terminal at the next boot. You should also ensure removing the <strong>splash <\/strong>keyword right after the <strong>quiet <\/strong>line, so that, the final output will look like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"476\" class=\"wp-image-24235\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-3.png 638w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-3-300x224.png 300w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/p>\n<p><strong>Step 4:<\/strong> <strong>Boot the System to Command Line<\/strong><\/p>\n<p>Then, use <strong>CTRL+X<\/strong> to boot <strong>Kali Linux <\/strong>to Command Line, wait until the command line interface appears on the screen:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"777\" height=\"150\" class=\"wp-image-24239\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-4.png 777w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-4-300x58.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-4-768x148.png 768w\" sizes=\"auto, (max-width: 777px) 100vw, 777px\" \/><\/p>\n<p><strong>Step 5: Set the Password for Kali Linux<\/strong><\/p>\n<p>Now, you are at the command line interface, simply use the <strong>passwd <\/strong>command followed by the <strong>root <\/strong>keyword to set a new password for root on <strong>Kali Linux<\/strong>:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">passwd<\/span> root<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"132\" class=\"wp-image-24246\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-5.png 788w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-5-300x50.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-5-768x129.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/p>\n<p><strong>Step 6: Enter and Retype New Password<\/strong><\/p>\n<p>During the process, you have to enter your <strong>New password<\/strong>, and press <strong>Enter <\/strong>after entering the password. Then again retype the <strong>New password <\/strong>that you have set previously to successfully update the root password on <strong>Kali Linux:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"712\" height=\"154\" class=\"wp-image-24250\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-6.png 712w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-6-300x65.png 300w\" sizes=\"auto, (max-width: 712px) 100vw, 712px\" \/><\/p>\n<p><strong>Note: <\/strong>If you have different users, you can replace <strong>root <\/strong>with the <strong>username <\/strong>to replace the password for that specific user on <strong>Kali Linux<\/strong>.<\/p>\n<p><strong>Step 7: Reboot the System<\/strong><\/p>\n<p>Now, for the changes to be successfully made and to enter into the Kali Linux system login interface, you must reboot the system from the command-line using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">exec<\/span> <span class=\"sy0\">\/<\/span>sbin<span class=\"sy0\">\/<\/span>init<\/div><\/div>\n<p><strong>Note: <\/strong>It is important to note that normal <strong>reboot <\/strong>command won\u2019t work here because system has not been booted with <strong>systemd<\/strong> as init system, thus you will see the following error on the screen:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"838\" height=\"138\" class=\"wp-image-24257\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-7.png 838w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-7-300x49.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24205-7-768x126.png 768w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/p>\n<p>After following the above-given steps, you can login to your Kali Linux system with the new password you set in <strong>Step 6<\/strong>. However, it is important that you must enter the system as a root user in case you haven\u2019t changed the password for another user.<\/p>\n<h2><a id=\"post-24205-_lgjhuuivzjdz\"><\/a><strong>Conclusion<\/strong><\/h2>\n<p>You can set a forgotten password on Kali Linux by entering the <strong>GRUB menu<\/strong> using <strong>CTRL+E<\/strong>. Then, scroll down and replace <strong>\u201cro quiet splash\u201d <\/strong>with<strong> \u201crw init=\/bin\/bash\u201d <\/strong>to force the system to enter the editing mode. After you save the changes using <strong>CTRL+X,<\/strong> the device will reboot and enter the terminal mode after the reboot. At the terminal, simply use the passwd root command and set a password for your Kali Linux system and reboot the device using the <strong>\u201cexec \/sbin\/init\u201d <\/strong>command. After the reboot, you can enter Kali Linux with your new password and start using the operating system.<\/p>","protected":false},"excerpt":{"rendered":"<p>You can set a forgotten password on Kali Linux from the GRUB menu by making some slight modifications. Read this guide for more details.<\/p>","protected":false},"author":116,"featured_media":24454,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1054],"tags":[],"class_list":["post-24205","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kali-linux"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24205","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\/116"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=24205"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24205\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/24454"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=24205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=24205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=24205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}