How to Remove password while changing to root in Kali Linux 2021.1

Access "root" terminal without password !

All of us are very known about root terminal, as we can do all the work/job using root terminal, which are not possible in as only user.Many of us are tired of typing password again and again for accessing root terminal in Kali Linux. When we want go as root that system asks for password which is in their point of view absolutely right for security purpose but in ours it's very frustrating.

Here are some steps that are very useful for Kali Linux root users:

Step 1: 

  • Go to Kali system and open Linux terminal as root by typing command:

     sudo su

  • then for add in Kali-trusted group, type command:

   dpkg-reconfigure kali-grant-root

  • You should see a pop-up like this:

  • Select first option = Enable password-less privilege escalation & press Enter

  • Now you are successfully added in Kali-trusted group.
  • Now Exit the terminal.

Step 2:

  • Again open the terminal type command:

    sudo su 

    Give user password 

  • Again Exit the terminal.

Step 3:

  • Now open Files 
  • In the Files on the top right corner, there are three dots, click on them 

    then select Show hidden files

    (now all the hidden files are showing)

  • then select .bashrc file & Open it

  • In the file scroll to the bottom, give some space and type:

    sudo su 

  • then Save file

Step 4:

  • Again open the terminal & type command:

    sudo su 

    Give user password 

  • Again Exit the terminal.

Step 5:

  • Restart the system.

  • No you're done with accessing root terminal without password 
  • After restarting system open terminal and type:

    sudo su

  • You'll see an change that system doesn't ask for password.

 

If I did something correct me in comments.

THANK YOU !




Post a Comment

Post a Comment (0)

Previous Post Next Post