Give a user sudo (administrator) rights on Ubuntu — by ændrük on Ask Ubuntu
On Ubuntu, members of the sudo group can already use sudo, so you just add the user to that group instead of editing /etc/sudoers. The change takes effect at the user's next login.
Quick steps
- sudo adduser <username> sudo
- Log out and back in as that user
Paraphrased from the source. Menus can differ by version, so check the original for full details.
Source: Give a user sudo (administrator) rights on Ubuntu by ændrük on Ask Ubuntu. Licence: CC BY-SA (Stack Exchange; version depends on post date).
- Source reviewed
- 2026-11-02
- Link checked
- Not yet
- Tested hands-on
- Not by Oddbyte.Me