• Voytrekk@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    You will want to modify the sudoers file. In a terminal sudo nano /etc/sudoers. You will want to go down to the line %wheel ALL=(ALL:ALL) ALL and comment it out by adding # in front of it. A few lines down should be a similar line # %wheel ALL=(ALL:ALL) NOPASSWD: ALL. You will want to uncomment this by deleting the # at the beginning of the line. With nano, you can save by hitting ctrl+O then hitting ENTER to confirm. Hit ctrl+X to exit nano.

    Link to sudoers man page

    • Blizzard@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      1 year ago

      Thanks, I tried that before and I think it only worked until I re-logged (?). I’ll try that again, this time will use something else than vi editor to be sure.

      • Voytrekk@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        vi is definitely different being a modal editor. If you are new to Linux, I would suggest nano. It is much easier to understand, even if it isnt as fast as vi can be. Many distros have it installed, and pretty much all of them should have it in their repos.