I see people talking about doas saying it’s just like sudo but with less features. I’m just wondering if there is any situation where you should use doas or if it’s just personal preference.

  • Communist@lemmy.ml
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    3
    ·
    7 months ago

    I just use doas because sudo has a bunch of features i don’t care about or use, and doas does everything i need while being significantly smaller.

          • pmk@lemmy.sdf.org
            link
            fedilink
            arrow-up
            5
            ·
            7 months ago

            The concern is not storage space, but potential bugs leading to security issues. For OpenBSD this is very important, and so they made doas.

            • atzanteol@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              1
              ·
              7 months ago

              I understand the concern - but it’s not warranted. LOC is a bad predictor of security. And fwiw /usr/bin/sudo on my system is only 227K.

              The OpenBSD team does fantastic work. I’m assuming doas will be a good tool and probably more secure that sudo generally. But “size” isn’t the best way to determine that. It’s not even a good way.

              • pmk@lemmy.sdf.org
                link
                fedilink
                arrow-up
                2
                ·
                7 months ago

                Tedu (author of doas) wrote about it in 2015:
                “There were some concerns that sudo was too big, running too much code in a privileged process. And there was also pressure to enable even more options, because the feature set shipped in base wasn’t big enough. (As shipped in OpenBSD, the compiled sudo was already five times larger than just about any other setuid program.)”
                https://flak.tedunangst.com/post/doas

        • fuckwit_mcbumcrumble@lemmy.world
          link
          fedilink
          English
          arrow-up
          13
          ·
          7 months ago

          Ya know, I wish I could at least say something about being european and using commas instead of periods for decimal points, but I can’t even say that. Still 6MB fully installed is nothing these days.

          • acockworkorange@mander.xyz
            link
            fedilink
            arrow-up
            7
            arrow-down
            1
            ·
            7 months ago

            And here I am wondering what went so wrong with sudo that it needs 6 fucking mibibytes to work its simple magic.

            • atzanteol@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              11
              arrow-down
              2
              ·
              7 months ago

              Yeah, it’s gonna take forever to download over my 14.4k baud modem.

              STOP PICKING UP THE PHONE MOM!

      • tabular@lemmy.world
        link
        fedilink
        English
        arrow-up
        11
        arrow-down
        1
        ·
        7 months ago

        Less lines of code needed means less chances of errors and potential vulnerabilities (if number and quality of eyeballs were the same)

        • taladar@sh.itjust.works
          link
          fedilink
          arrow-up
          3
          ·
          7 months ago

          Also only really applies if you are comparing programs in the same programming language as some programs have lines that are significantly more expressive than others. Conversely, some languages have constructs that are significantly more bug-prone than others (e.g. for loops with explicit integer indices instead of higher order functions like map or iterators to iterate over a collection).

      • Communist@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 months ago

        No, but it’s cleaner and designed for my usecase, and no real work to setup for me, all I had to do was add an alias