Skip to content

Instantly share code, notes, and snippets.

@harupong
Created January 19, 2024 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harupong/f8b30da847745bda21c0f16564cfe858 to your computer and use it in GitHub Desktop.
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`
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