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
- How to run HugginFace models in JavaScript
- How to run HugginFace models in Python
- Fix Panda dataframe errors for Backtrader
- Array map to new type in TypeScript
- Intel M1 chip vs Apple M1 silicon chip
- How to add Menu to Mac App in SwiftUI
- The AI Presence in WordPress
- How to use Swift CoreData
- What are the steps to use Swift Core Data ?
- What is Swift CoreData ?