This is a walkthrough guide on how to add a standard user in Kali Linux.
Step 1: Login as root user by simply typing in the command sudo su
.
Step 2: Enter the command useradd -m userName
to add desired username for the new user (-m
stands for home directory).
Step 3: Set the password for this new user by entering passwd userName
.
Step 4: Add user to the sudo group by typing usermod -a -G sudo userName
. This will allow the newly created user to install software, use privileged modes, and more. -a
means add/append while -G
means the specified group or groups (in this case, the sudo group).
Step 5: Change the default shell to bash with chsh -s /bin/bash userName
. chsh
stands for login shell and -s
stands for the specified shell you want to set for the user (in this case, the /bin/bash).
Step 6: To exit root user, type in the exit
command.
Step 7: To see if this was a success, navigate to the home directory and enter the ls
command. You should see both the root user and the newly added user.
Great! Now you can logout from root user and log back in as your newly created standard user.