How To Install adduser on Kali Linux
Introduction
In this tutorial we learn how to install adduser on Kali Linux.
What is adduser
adduser is:
This package includes the ‘adduser’ and ‘deluser’ commands for creating and removing users.
- ‘adduser’ creates new users and groups and adds existing users to existing groups;
- ‘deluser’ removes users and groups and removes users from a given group.
Adding users with ‘adduser’ is much easier than adding them manually. Adduser will choose appropriate UID and GID values, create a home directory, copy skeletal user configuration, and automate setting initial values for the user’s password, real name and so on.
Deluser can back up and remove users’ home directories and mail spool or all the files they own on the system.
A custom script can be executed after each of the commands.
There are three methods to install adduser 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 adduser Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install adduser using apt-get by running the following command:
sudo apt-get -y install adduserInstall adduser Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install adduser using apt by running the following command:
sudo apt -y install adduserInstall adduser 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 adduser using aptitude by running the following command:
sudo aptitude -y install adduserHow To Uninstall adduser on Kali Linux
To uninstall only the adduser package we can use the following command:
sudo apt-get remove adduserUninstall adduser And Its Dependencies
To uninstall adduser and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove adduserRemove adduser Configurations and Data
To remove adduser configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge adduserRemove adduser configuration, data, and all of its dependencies
We can use the following command to remove adduser configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge adduserDependencies
adduser have the following dependencies:
References
Summary
In this tutorial we learn how to install adduser package on Kali Linux using different package management tools: apt, apt-get and aptitude.