In this post we will cover that how to become a super user in the Kali Linux. Then how to create a new user, new group and how to add specific numbers in the user. Also we will cover that how to delete any user and group. It is too important work for a hacker. But question is that why we need this? We do this for saving us, for group work and for best work. For example we install kali Linux and our username is (kali) and password is (Linux) but we want to change username as (Linux) and password as (kali) then how we will create this user?
Kali Linux Internal Structure
Again keep in mind that the brackets are not part of commands;
HOW TO BECOME A SUPER USER (ROOT USER) IN KALI LINUX?
Root user is the super user in the Kali Linux and it has all the permissions for a file means read, write and execute and a hacker must be a root user. It is formed as;
Open the terminal from menu bar then execute the following commands.
(sudo passwd root)
Then enter your password of Kali Linux that is your log in password
Then enter the new password as you wish but it must be strong password including Special Symbols, Letters, Digits.
Then confirm the new password
Now if you will restart your Kali Linux then
Username : root
Password : It is your new password that you confirmed for root.
Press log in, now you are super/root user in Kali Linux
HOW TO MAKE A NEW USER IN KALI LINUX?
Open the terminal and run the following commands;
(sudo adduser + any name)
Enter your password (password will never appear in terminal when you type)
Then type your new password
Confirm your new password
Give full name of your new user
Then press Enter Button Three Times
And then type (y) to yes
Now if you want to see your user it will not appear in normal terminal if you will type (user) command in terminal. Your user will be in file system, in etc folder in passwd folder (Directory).
HOW TO MAKE A NEW USER USING SINGLE COMMAND?
(sudo useradd -d +/directory where you want to save this user/ -s +/directory/ -p +any passward + new username)
For example
(sudo useradd -d /home/ -s /bin/bash -p 12345 mohid)
Again this user will store in file system in etc folder in passwd directory.
HOW TO ADD SPECIFIC NUMBERS OF LINES IN AN USER?
(head -n +numbers cat /etc/passwd)
For example
(head -n 4 cat /etc/passwd)
(tail -n +numbers cat /etc/passwd)
For example
(tail -n 5 cat /etc/passwd)
HOW TO DELETE A USER?
(userdel -rf + username) e.g.
(userdel -rf mohid)
HOW TO MAKE A GROUP IN KALI LINUX?
(sudo groupadd +group name) i.e.
(sudo groupadd group1 )
HOW TO ADD A USER TO A GROUP?
(sudo usermod -g +group name +user name) e.g.
(sudo usermod -g group1 mohid)
HOW TO DELETE A GROUP?
(sudo groupdel +group name) i.e.
(sudo groupdel group1)

