To add user in kali

root@kali:~# adduser danger
Adding user `danger' ...
Adding new group `danger' (1001) ...
Adding new user `danger' (1001) with group `danger' ...
Creating home directory `/home/danger' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
Changing the user information for danger
Enter the new value, or press ENTER for the default
 Full Name []: Danger
 Room Number []: 
 Work Phone []: 
 Home Phone []: 
 Other []: 
Is the information correct? [Y/n] Y
Go to user: danger account
root@kali:~# sudo su danger
danger@kali:/root$ 

To get back to user account
 
 
danger@kali:/root$ sudo su danger

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for danger: 
danger is not in the sudoers file.  This incident will be reported.
 
 

Steps to add danger user in the sudoers file  

 
danger@kali:/root$ sudo su root
[sudo] password for danger: 
danger is not in the sudoers file.  This incident will be reported.
danger@kali:/root$ su root
Password: 
root@kali:~# sudo adduser danger sudo
Adding user `danger' to group `sudo' ...
Adding user danger to group sudo
Done.
Reactions:

0 comments:

Post a Comment