Skip to content

Instantly share code, notes, and snippets.

@wyyder
Created January 25, 2020 07:19
Show Gist options
  • Save wyyder/85d5a0d29c4338ae099204570db15f47 to your computer and use it in GitHub Desktop.
Save wyyder/85d5a0d29c4338ae099204570db15f47 to your computer and use it in GitHub Desktop.
To create a new user with sudo permission in Kali Linux
# Add user.
useradd -m username
# -m creates a home directory for the user.
# Set Password.
passwd username
# Set user group to sudo.
usermod -a -G sudo username
# -a option to add and ‘-G sudo’ means to add the user to the sudo group.
chsh -s /bin/bash username
# chsh command is used to change the login shell for a user.
@JimmyBinoculars
Copy link

I have tried this in 2024, it still works...

@coldman07
Copy link

coldman07 commented Apr 2, 2025

worked for me (2025)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment