How to add a single user to the sudoers list?

In both Fedora and PCLinuxOS Debian edition which I have installed recently it seems I need to add the only user to sudoers list to perform certain actions.

How to do this?

5 points · 3 comments · view on lemmy.world

3 Comments

Mellow12@lemmy.world · 4 pts · 2y (2 replies)

File: /etc/sudoers

username ALL=(ALL) ALL

https://www.linuxfoundation.org/blog/blog/classic-sysadmin-configuring-the-linux-sudoers-file

-or-

Debian uses a group called sudo. Add a user to that group.

usermod -aG sudo

voracread@lemmy.world · 2 pts · 2y (1 reply)

I will try that.