-
Cant make users Kali 2.0
I don't know if i'm the only one having this issue but weather its the command line or GUI i can never login under a different user name. I tried to make a non root user through CLI, when logged out and tried to login under the new identity it did not recognize it. I removed it and tried again through the GUI, when i tried to set the password for the new identity the add button was disabled. When i checked the radio button to allow the user to set it next time they logged in the Add button was enabled. So i log out and try it again, i get to the password screen, no matter what i type the system will not recognize it. So i am now stuck with root access. What is happening?:confused:
-
1. Open a terminal - logged in as root
2. Add a new user using: #useradd -m yourusername
-m to create the user's home directory
3. Create a password for the user: #passwd yourusername
4. Add the user to the sudo group (to install software etc): #usermod -a -G sudo yourusername
-a to add and -G mentions the group name to be added to
5. Now finally change the default shell of the newly added user to bash: #chsh -s /bin/bash yourusername
-s to provide a new login shell for the user account
-
You can do it all on one line with:
useradd -m -g kali -G kali,sudo,wheel -s /bin/bash kali
where -g creates group 'kali' and final 'kali' is new username.
Then change password for user 'kali' with:
passwd kali
Log out and in with new username.
Note that not everything will work in kali with non root user account.