How To Install libnss-wrapper on Kali Linux
Introduction
In this tutorial we learn how to install libnss-wrapper on Kali Linux.
What is libnss-wrapper
libnss-wrapper is:
There are projects which provide daemons needing to be able to create, modify and delete unix users. Or just switch user ids to interact with the system, for example a user space file server. To be able to test that you need the privilege to modify the passwd and groups file. With nss_wrapper it is possible to define your own passwd and groups file which will be used by software to act correctly while under test.
If you have a client and server under test they normally use functions to resolve network names to addresses (DNS) or vice versa. The nss_wrappers allow you to create a hosts file to setup name resolution for the addresses you use with socket_wrapper.
There are three methods to install libnss-wrapper 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 libnss-wrapper Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libnss-wrapper using apt-get by running the following command:
sudo apt-get -y install libnss-wrapperInstall libnss-wrapper Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libnss-wrapper using apt by running the following command:
sudo apt -y install libnss-wrapperInstall libnss-wrapper 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 updateAfter updating apt database, We can install libnss-wrapper using aptitude by running the following command:
sudo aptitude -y install libnss-wrapperHow To Uninstall libnss-wrapper on Kali Linux
To uninstall only the libnss-wrapper package we can use the following command:
sudo apt-get remove libnss-wrapperUninstall libnss-wrapper And Its Dependencies
To uninstall libnss-wrapper and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libnss-wrapperRemove libnss-wrapper Configurations and Data
To remove libnss-wrapper configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libnss-wrapperRemove libnss-wrapper configuration, data, and all of its dependencies
We can use the following command to remove libnss-wrapper configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libnss-wrapperDependencies
libnss-wrapper have the following dependencies:
References
Summary
In this tutorial we learn how to install libnss-wrapper package on Kali Linux using different package management tools: apt, apt-get and aptitude.