Kali Linux 2 users

Kali Linux is a niche distribution designed for those with a certain degree of expertise in Linux. However, that shouldn’t stop you, if you don’t have the required level of expertise, to use it.

It’s designed for pentesters, but can be used like any other Linux desktop distribution. One little problem, though, is that unlike other distributions, a standard user account is not created during installation. So the first recommended tasks to perform on a fresh installation of Kali Linux 2.0, the latest edition, is to create a standard user account.

Because the graphical interface for creating users on the system has been severely crippled (see the last screenshot in this article), the best method for creating users on the system is from the command line. Two methods of creating users from the command line are given in this article. After creating a user, you’ll also read how to add a particular directory to the user’s PATH.

To start, launch a shell terminal and execute the command(s) in one of the follow methods.

Method 1 – The command to use here is called useradd. The m option instructs the script to create the user’s home directory, while the G option is used to add the user to existing groups. In the following command, the user is added to the sudo group to give it access to system-level commands via the sudo command. useradd -m USERNAME -G sudo -s /bin/bash. Replace USERNAME with your choice of login name.

After that, specify a password for the user with passwd USERNAME. You’ll be prompted to specify and verify a password. Again, replace USERNAME with your choice of login name.

Method 2 uses the adduser command. You just pass it the name of the user and it does the rest, prompting you to specify and verify a password along the way. For example, adduser USERNAME. As in the previous command, use your choice of login name.

Whatever method you use to create the user, after it has been created, log out, then log back in using the new username. The final task involves modifying the user’s PATH to add the /usr/sbin directory. That’s necessary because that directory is not in the user’s PATH, but most of the tools installed, even the graphical tools, depend on scripts in that directory.

So if you run some tools while logged in as the non-root user, and the directory is not in the user’s PATH, you’ll get the type of warning about tcpdump shown in Figure 1.

Kali Linux 2 user PATH
Figure 1: Why you need to update the user’s PATH

To avoid such warnings, you’ll need to add a line to the users .profile file. To do that, open the file using the nano text editor and append the following line to it: PATH=/usr/sbin:$PATH. Afterwards, log out and log back in to effect the change.

Figure 2 shows a screenshot of the System Settings Users module, which is normally used for creating users on the system. In Kali Linux 2, the module is unusable. Not sure if that’s by design or a bug.

Kali Linux 2 users
Figure 2: System Settings Users module on Kali Linux 2


Share on facebook
Share on twitter
Share on pinterest
Share on linkedin

Hola! Did you notice that LinuxBSDos.com no longer runs network ads?  Yep, no more ads from the usual suspects that track you across the Internet.  But since  I still need to pay to keep the site running, feel free to make a small donation by PayPal.

Subscribe for updates. Trust me, no spam!

Mailchimp Signup Form

Sponsored links

1. Attend Algorithm Conference, a top AI and ML event for 2020.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.

One Response

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest

On social media
Via my newsletter
Mailchimp Signup Form

Partner links

1. Attend Algorithm Conference, a top AI and ML event for 2021.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.
Hacking, pentesting distributions

Linux Distributions for Hacking

Experts use these Linux distributions for hacking, digital forensics, and pentesting.


The authors of these books are confirmed to speak during

Algorithm Conference

T-minus AI

Author was the first chairperson of AI for the U.S. Air Force.

The case for killer robots

Author is the Director of the Center for Natural and Artificial Intelligence.

Why greatness cannot be planned

Author works on AI safety as a Senior Research Scientist at Uber AI Labs.

Anastasia Marchenkova

An invitation from Anastasia Marchenkova

Hya, after stints as a quantum researcher at Georgia Tech Quantum Optics & Quantum Telecom Lab, and the University of Maryland Joint Quantum Institute, I’m now working on superconducting qubit quantum processors at Bleximo. I’ll be speaking during Algorithm Conference in Austin, Texas, July 16 – 18, 2020. Meet me there and let’s chat about progress and hype in quantum computing.