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?
Syndicated from the fediverse. Read and engage on the original instance.
View original on lemmy.worldIn 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?
3 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
I will try that.
Add the desired user to the wheel group in Fedora
https://docs.fedoraproject.org/en-US/quick-docs/adding_user_to_sudoers_file/