Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!
Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.
Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!
Debian - Add user to sudoers (Fix error: User is not in the sudoers file)
January 29, 2023 6:48 AM
Tried this with Debian 11 and this was the easiest way to get it done.
1. Open a terminal and start with "su" (password will be asked)
2. Next open "/etc/sudoers" so we can edit it
3. Add the user you want to give sudo privileges (where "hans" is the username - I placed it right under the same formatted line for the root user)
hans ALL=(ALL:ALL) ALL
4. Save and close (CTRL+X, confirm by pressing "Y").
You should be good to go now.
Test this with for example: