How to Install and Uninstall pkexec Package on Kali Linux

Last updated: May 19,2024

1. Install "pkexec" package

Please follow the guidance below to install pkexec on Kali Linux

$ sudo apt update $ sudo apt install pkexec

2. Uninstall "pkexec" package

Learn how to uninstall pkexec on Kali Linux:

$ sudo apt remove pkexec $ sudo apt autoclean && sudo apt autoremove

3. Information about the pkexec package on Kali Linux

Package: pkexec
Source: policykit-1
Version: 124-1+kali1
Architecture: amd64
Maintainer: Kali Developers
Installed-Size: 62
Depends: polkitd (= 124-1+kali1), libc6 (>= 2.34), libglib2.0-0 (>= 2.36.0), libpam0g (>= 0.99.7.1), libpolkit-agent-1-0 (= 124-1+kali1), libpolkit-gobject-1-0 (= 124-1+kali1)
Breaks: policykit-1 (<< 0.120-4~)
Replaces: policykit-1 (<< 0.120-4~)
Multi-Arch: foreign
Homepage: https://github.com/polkit-org/polkit/
Priority: optional
Section: admin
Filename: pool/main/p/policykit-1/pkexec_124-1+kali1_amd64.deb
Size: 24468
SHA256: 8c4db7645b87e02f2b87dbecbba3da8eae8cd35c2e03e8e4a709a5b6b5bec55b
SHA1: 078c94c6a9c05ee6cc976c7621de706361f399e6
MD5sum: 86c8e7e8cc3cad26ccb49c47342ae285
Description: run commands as another user with polkit authorization
polkit is an application-level toolkit for defining and handling the policy
that allows unprivileged processes to speak to privileged processes.
It was previously named PolicyKit.
.
pkexec is a setuid program to allow certain users to run commands as
root or as a different user, similar to sudo. Unlike sudo, it carries
out authentication and authorization by sending a request to polkit,
so it uses desktop environments' familiar prompting mechanisms for
authentication and uses polkit policies for authorization decisions.
.
By default, members of the 'sudo' Unix group can use pkexec to run any
command after authenticating. The authorization rules can be changed by
the local system administrator.
.
If this functionality is not required, removing the pkexec package will
reduce security risk by removing a setuid program.
Description-md5:
Original-Maintainer: Utopia Maintenance Team