• SlicedPotato@feddit.dk
    link
    fedilink
    arrow-up
    5
    ·
    2 months ago

    Sudo: Always uses the root user to get access to run a command, no matter which user you want to run the command as. Doas: Uses the user you want to run the command as to actually get access to run the command.

    • ShimitarA
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 months ago

      Sudo -u otheruser do still go trough root?

      • corsicanguppy@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        Nah. The guy’s either confusing sudo -u and sudo su - or confusing “has suid so it can switch users” with “always goes through root”. Because it doesn’t “go through” root like sudo su does.