Created
January 19, 2024 00:49
-
-
Save harupong/f8b30da847745bda21c0f16564cfe858 to your computer and use it in GitHub Desktop.
Adding new user and enable sudo on Debian based systems. I can never remember whether it is `adduser` or `useradd`
This file contains 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
userid=<username> | |
adduser ${userid} | |
usermod -aG sudo ${userid} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment