Header AD

How To Create A Standard User On Kali Linux

How to create a standard user on Kali Linux

How To Create A Standard User On Kali Linux
How To Create A Standard User On Kali Linux

How to create a standard user on Kali Linux

Anyone who uses the computer is called user.You can add as many as users you want in Linux. There are two types of users in Linux.
  • Root
  • Standard User

Root user

Root is the most powerful user.Root has access to all the files. Root can delete, modify, change file permissions and install and uninstall programs in Linux.By default, root can access all the commands. Root is also known as the Superuser in Linux.

Standard user

Standard Users have limited access to the computer.Standard users do not have permission to delete, modify, install and uninstall programs.So nonroot users can not perform administrative tasks.It's too dangerous to run root user you may delete system files accidentally without even knowing. Especially in kali Linux 2.0 by default, it operates with root user, but in most Linux distro's you have to access root with. So it's safe to have a not root user, especially in kali. So let's create a standard user.Open your Terminal and type the following command:
sunny@zeeroseven:~$ useradd user1 -m -s /bin/bash -g users
  • useradd : Adds the new user to Linux.
  • User1: After the useradd command you need to specify the user name that you want to create.
  • -M: It creates the Home directory for the new user.
  • -s /bin/bash: It creates bash shell.This is the default shell for all the Linux distributions.
  • -g users: This is the default group that newly created user will be the member of.
Now check if the user is created or not.Type the following command:
TheHacker@zeeroseven:~$ ls /home
sunny  user1
As you can see we have created new user user1 successfully.This is where -m comes into action. it tells Linux to have the home a directory for user user1. Now that we have created the new user but it doest not have its own password.So let's assign a password to user1 with the following command.
TheHacker@zeeroseven:~$ passwd user1
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
TheHacker user1
Also Check: Beginners Ethical Hacking Course

When you type password user1 command you will be asked to enter the new password and re-enter again for confirmation.That's it we have created user1 with the password. If you don't supply any user name with the command passwd then your root password will be changed.
Now you can log in with user1 just type:
TheHacker@zeeroseven:~$ login user1
Last login: Thu Oct  8 06:24:46 EDT 2015 on pts/0
Linux zeeroseven 3.18.0-kali3-amd64 #1 SMP Debian 3.18.6-1~kali2 (2015-03-02) x86_64

The programs included with the Kali GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Kali GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Delete User

user deal command deletes users on Linux.type the following command:
TheHacker@zeeroseven:~$ userdel user1
Also Check: Beginners Ethical Hacking Course

if you type ls /home you will see that user1 is still there.That's because it has deleted the user from the system but did not delete its home directory. Remove user's home directory with:
TheHacker@zeeroseven:~$ userdel -r user1
So above are the How to create a standard user on Kali Linux. Hope you like this article, keep on sharing with others too. Also, share your experience with us in a comment box below.

No comments