For the complete documentation index, see llms.txt. This page is also available as Markdown.

Linux - add user to sudo group

Add user to sudo group and allow to use sudo without password


# 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

Last updated