-
-
Save sponkmonk/33b82905015e5407c0fb91ac7576fb76 to your computer and use it in GitHub Desktop.
To create a new user with sudo permission in Kali Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment