How to Create a New User Account on Kali Linux with root Privileges | Kali Linux

Опубликовано: 02 Март 2026
на канале: AJ's Home Lab!
665
9

Follow this guide to create a new user with root privileges

As you may know, Kali Linux is a powerful penetration testing platform, and creating a new user with root privileges can be a helpful task when it comes to managing your system.

In this video, we will show you how to create a new user with root privileges using the command line interface in Kali Linux. This will allow you to create a new user account and grant them root access, which can be useful when you need to perform administrative tasks.

We will start by opening the terminal and typing the command "adduser" followed by the username of the new user. Next, we will enter a password for the new user and confirm it.

After that, we will use the command "usermod" to add the new user to the sudo group, which will grant them root privileges. This is done by typing "usermod -aG sudo username", where "username" is the name of the new user.

Finally, we will test the new user's privileges by logging out of the current user account and logging in with the new user's credentials. Once logged in, we will test whether the new user has root privileges by running a few simple administrative commands.

Creating a new user with root privileges on Kali Linux can be a helpful task, especially when it comes to managing your system. With this tutorial, you will be able to create a new user account with root access and ensure that they have the necessary permissions to perform administrative tasks.

We hope you found this tutorial helpful, and if you have any questions or comments, please feel free to leave them in the comment section below. Don't forget to like and subscribe for more tutorials on Kali Linux and other technical topics!

Commands used in video:
Create a New Normal User by command below:

adduser username

Chanage the user's password:

passwd username

Now, Add user to sudo group (This allows user to install software or other permissions)

usermod -a -G sudo username

usermod is used for make changes to an existing user
-a means add
-G means to group

sudo is Group in kali Linux default

Now, we have to specify the shell for our new user.
chsh -s /bin/bash username
chsh means change shell
-s (-shell) specified shell for new accounts, in this case /bin/bash

How to Create a New User Account on Kali Linux with root Privileges | Kali Linux

#kali #root #user #linix #howto #create #new #user #youtube #homelab

What is kali Linux used for?
Kali Linux is a popular open-source operating system that is mainly used for penetration testing, digital forensics, and ethical hacking. It contains a wide range of security tools and software applications that are specifically designed for security testing and analysis.

Some of the common uses of Kali Linux include:

Penetration testing: Kali Linux is widely used by cybersecurity professionals and ethical hackers to test the security of computer systems, networks, and web applications.

Digital forensics: Kali Linux provides various digital forensics tools that can be used for analyzing digital evidence and investigating cyber crimes.

Malware analysis: Kali Linux includes a variety of malware analysis tools that can be used to analyze and detect malicious software.

Network monitoring: Kali Linux includes tools that allow users to monitor and analyze network traffic and detect any suspicious activity.

Wireless network testing: Kali Linux provides various tools for testing and analyzing wireless networks, including Wi-Fi password cracking, packet sniffing, and protocol analysis.

Password cracking: Kali Linux includes various password cracking tools that can be used to test the strength of passwords and recover lost passwords.

Overall, Kali Linux is a powerful platform that provides a wide range of security tools and capabilities, making it an essential tool for cybersecurity professionals, ethical hackers, and other security enthusiasts.

Check out our social media to stay up to date!
Facebook:   / homelabnetworks  
Instagram:   / homelabnetworks  
Twitter:   / homelabnetworks