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?

9
  • When you tried to log in did you enter your username as well as password? For one of my systems I must enter both
    – anon
    Commented Sep 17, 2022 at 18:16
  • The name I need to log in is void, but I have another name so can you tell me what it is for Commented Sep 17, 2022 at 18:49
  • John log in where? And how would I do what you told me to Commented Sep 17, 2022 at 18:50
  • Your user ("void") simply has no root permissions. Log in with a different account which has root and add yourself to the sudoers file.
    – Bip901
    Commented Sep 17, 2022 at 19:40
  • Restart and there should be a login screen. True for all operating systems.
    – anon
    Commented Sep 17, 2022 at 20:36

1 Answer 1

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.

2
  • 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.
    – Community Bot
    Commented Sep 17, 2022 at 22:31
  • It says usermod not found. I am not familiar with the terminal if that helps Commented Sep 18, 2022 at 19:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .