How to add user to sudo group
How to add user to sudo group
To add an existing user to the
Code
sudo group in Ubuntu, use the usermod command with the -aG flag. The -a flag ensures the user is appended to the group, and -G specifies the group. Replace <username> with the actual username. For example: Code
sudo usermod -aG sudo <username>
Comments