This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

  • 1:
    • 1.1:
    • 1.2:
  • 2:

    Welcome to Kali Linux

    1.1 -

    How to create a new normal user with sudo permission in Kali Linux

    Kali Linux, the pentester’s Linux does not need an introduction. Today, I’ll show you how to create a normal user under Kali Linux. You might ask, Why would someone want to create a normal/standard user in Kali? What’s wrong with root only? Well, simply saying, being root all the time is not so good. Some applications won’t work in root. (Google chrome won’t work in root by default). If you want to use Kali as a day to day operating system, I’d suggest you to create a standard user and use it. If you want to do pentesting and stuff, you could ‘sudo’ or just log in as root.

    Here’s how you will create a normal user

    Open a terminal and issue the following command.

    useradd -m username
    # -m creates a home directory for the user.
    

    Now we have to set a password for the user.

    passwd username
    

    It will ask you to create a new password.

    At this point, we have a new user account. But we might want to add our new user to the “sudoers” group, so that we can use “sudo” to do administrative actions.

    usermod -a -G sudo username
    

    The option -a means to add and ‘-G sudo’ means to add the user to the sudo group. If you want to know more about the usermod command, issue man usermod command to know more about usermod

    Now we have to specify the shell for our new user.

    chsh -s /bin/bash username
    

    chsh command is used to change the login shell for a user.

    All done.! you are all set. You could logout and login to your new account.

    1.2 -

    Parrot OS Terminal For Kali linux

    Lets download the scripts that will do this for us:

    git clone https://github.com/m4xx101/kali_parrot_terminal.git
    

    So now we enter the folder

    cd kali_parrot_terminal/
    

    We need to make it executable

    chmod +x install.sh
    

    And now install with

    ./install.sh
    

    2 -