1

I want to use the sudo command but whenever I type it I see a message that says void is not in the sudoers file, this incident will be reported. I tried finding a way to fix it, and the told me to type su root then follow the next steps, but when I type su root it says authentication failure No problem, lets just fix that right? Well then they tell me to type in sudo which I cant use so I need a different way of solving this problem, would you mind helping me out?

1 Answers1

0

It's not enough to install the sudo program. You must have root permissions (meaning you have to be the admin user) to grant your user the required permissions to use sudo.

Use the visudo command to grant yourself the permissions (this will open vi text editor and has example lines you can just copy paste, type :wq and Enter to save & exit) or add the user to "wheel" group with usermod -aG wheel void as the root user.

Hannu
  • 8,740
  • 3
  • 21
  • 39
puucee
  • 1
  • 1
  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Sep 17 '22 at 22:31
  • It says usermod not found. I am not familiar with the terminal if that helps – Monetary gain Sep 18 '22 at 19:31