> For the complete documentation index, see [llms.txt](https://dev-notes.vinguyen.blog/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev-notes.vinguyen.blog/notes/deployment-and-operation/linux/linux-add-user-to-sudo-group.md).

# Linux - add user to sudo group

```bash

# Create new user
adduser your_user

# Add to sudo group
sudo usermod -aG sudo your_user

# (optional) Allow to use sudo without password
echo 'your_user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
```
