How to change Kali Linux Password
Steps to change the root password of your Kali Linux machine

How to change Kali Linux Password

Please ensure these few things before beginning with the password change procedure:

  1. You are using an active grub boot loader
  2. Your boot loader is not locked

Once the above things are confirmed, we can start following these steps:

Step 1: Boot into your machine to grub menu, do not choose anything or boot into Kali.

No alt text provided for this image

Step 2: Now you need to edit the grub entries, so you can spawn a root session. Press “e” key to enter edit mode.

No alt text provided for this image

Now you need to find the keyword “linux”, in our case you can see that the last line starts with “linux”, which is kernel selection. In our case “/boot/v,linuz-5.5.0.0-kali2-amd64” represents our active kernel.

Navigate in the line to “ro” (read only) and replace it with “rw” (read and write).

In the same line navigate to “quite splash” and replace it with command init=/bin/bash        

Step 3: once you have made these changes press key “f10” to boot. Or, Instead of F10, you can press enter , right after that, press Ctrl+X.

This will create a terminal session with root privileges.

No alt text provided for this image

Step 4: Once you are in the terminal session you just need to enter the command:

passwd <root(or Account username)>        
No alt text provided for this image

Step 5: Type new password in front of the 'New password:' and then retype the same to confirm the new password.

Press Enter and Let it setup the new password for you. Once the Kali Linux OS is restarted, it will ask you to enter your newly Set password to login with.

Kindly comment.

要查看或添加评论,请登录

Meenakshi .的更多文章

  • Cypress automation tool - POC continued..

    Cypress automation tool - POC continued..

    REST API Testing Using Cypress It's important to test APIs along with E2E UI tests. Cypress provides the functionality…

    1 条评论
  • What is Cypress?- POC

    What is Cypress?- POC

    What exactly is Cypress? Cypress is a free, open-source, locally installed Test Runner and Dashboard Service for…

  • Cypress.io

    Cypress.io

    Will discuss the details of Cypress automation testing tool in next Post.

  • What is the Secure SDLC?

    What is the Secure SDLC?

    What is a Secure SDLC? A secure SDLC refers to adding security details in the whole software development life cycle…

  • Software Testing

    Software Testing

    STLC yields a step-by-step process to ensure quality software. Phases of STLC: Requirement Analysis Test Planning Test…

  • Test Plan - Software Testing

    Test Plan - Software Testing

    A TEST PLAN is a document describing software testing scope and activities. It is the basis for formally testing any…

  • Web Security Testing

    Web Security Testing

    Web security testing is also called as Penetration testing/Fuzzy testing. So as the name suggest it is the type of…

  • Agile Manifesto has two parts: 2nd Part is :

    Agile Manifesto has two parts: 2nd Part is :

    2) Agile Manifesto twelve principles The core Agile Manifesto values are captured in below twelve principles:

  • Agile Software Development and the Agile Manifesto

    Agile Software Development and the Agile Manifesto

    The Agile Manifesto is a document that sets out the key values and principles behind the Agile philosophy and serves to…

  • 10 Principles Of Agile Testing

    10 Principles Of Agile Testing

    Provide continuous feedback Do not simply test constantly. Be responsible for distributing the results of tests and…

社区洞察

其他会员也浏览了