• blackstrat@lemmy.fwgx.uk
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Can you actually remove sudo from a system without breaking stuff? I can image there’s some stuff, scripts etc that depends on it. Unless you can alias it away?

      • Redjard@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Used doas for about 4 years now and never had an issue like that. The default config passes environment variables differently to sudo, but after I added the correct setting for that to doas.conf it has been identical to sudo in everything.

        If it caused issues for you you could link sudo to doas in bin, no script should ever use sudo -i right?

      • zicrons@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        I use my Linux system without sudo, it does break some (badly written) scripts. You can fix it by either creating a symlink in your path or replacing sudo to doas on those scripts.

        But I rarely encounter these issues. Usually system applications won’t be affecting by a missing sudo binary, as their privileges are typically managed by polkit or similar.