Fedora :the user not in sudoers list Error

The user not sudoers list error in Fedora


In Linux / Fedora user need permission to perform particular functions, such installing packages and removing packages.

The “user not in sudoers list” occurs because of the current user don’t have sudo permission.

Add user to Wheel group

The wheel group is meant for sudo users, a user can be added to this group using the usermod command or set it manually

first up all login as root user

su - 

Usermod

Using the terminal we can add user to the list with

usermod -a -G wheel username

Sometimes this method didn’t make it. So the manual is another option.

Manually set user privileges

Add the user permissions to the sudoers file under /etc. This can be done using the following command.

visudoers -f etc/sudoers

and add the following lines to the files

username ALL = (ALL:ALL)ALL 

Save the file the error will go away. This will let the user have all permission.

Please replace the username with your username.

Now try to install packages using the sudo dnf install nodejs

Author: Manoj

Developer and a self-learner, love to work with Reactjs, Angular, Node, Python and C#.Net

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.