How To Install kali-grant-root on Kali Linux

In this tutorial we learn how to install kali-grant-root on Kali Linux. kali-grant-root is Configuration controlling privilege escalation to root

Introduction

In this tutorial we learn how to install kali-grant-root on Kali Linux.

What is kali-grant-root

kali-grant-root is:

Penetration tester often use applications that require root privileges to perform their work. The default configuration requires the user to input his password to be granted root rights.

With this package installed, you can simply add the user to the “kali-trusted” group and it will automatically benefit from password-less privilege escalation. This is a convenience feature but also a security risk, use with caution and make sure that you don’t leave your computer unattented!

You can quickly enable/disable this feature with “dpkg-reconfigure kali-grant-root”. It will populate the “kali-trusted” groups with all the members of the “sudo” group.

There are three methods to install kali-grant-root on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install kali-grant-root Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install kali-grant-root using apt-get by running the following command:

sudo apt-get -y install kali-grant-root

Install kali-grant-root Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install kali-grant-root using apt by running the following command:

sudo apt -y install kali-grant-root

Install kali-grant-root Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install kali-grant-root using aptitude by running the following command:

sudo aptitude -y install kali-grant-root

How To Uninstall kali-grant-root on Kali Linux

To uninstall only the kali-grant-root package we can use the following command:

sudo apt-get remove kali-grant-root

Uninstall kali-grant-root And Its Dependencies

To uninstall kali-grant-root and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove kali-grant-root

Remove kali-grant-root Configurations and Data

To remove kali-grant-root configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge kali-grant-root

Remove kali-grant-root configuration, data, and all of its dependencies

We can use the following command to remove kali-grant-root configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge kali-grant-root

Dependencies

kali-grant-root have the following dependencies:

References

Summary

In this tutorial we learn how to install kali-grant-root package on Kali Linux using different package management tools: apt, apt-get and aptitude.