• d3Xt3r@lemmy.nzM
      link
      fedilink
      arrow-up
      35
      ·
      edit-2
      6 months ago

      doas is quite popular in the BSD world, and was ported to Linux a few years ago (via the OpenDoas project).

      For starters, it’s is a lot smaller than sudo - under 2k lines of code vs sudo’s 132k - this makes it lot more easier to audit and maintain, and technically less likely to have vulnerabilities.

      Another security advantage is that doas doesn’t pass on the environment variables by default (you’d have to explicitly declare the ones you want to pass, which you can do so in the config).

      The config is also a lot simpler, and doesn’t force you to use visudo - which never made sense to me, visudo should’ve just generated the actual config, instead of checking it after the fact. Kinda like how grubby or grub2-mkconfig works. But no need for that complexity with doas.

      Eg, the most basic doas config could just have one line in the file: permit: wheel. Maybe have another line for programs you want to run without a password, like permit nopass dexter cmd pacman.

      • Technus@lemmy.zip
        link
        fedilink
        arrow-up
        13
        ·
        6 months ago

        Nice to see that Mastodon has the same problem as Twitter with people trying to use it for long-form blog posts for some godforsaken reason.

        • taladar@sh.itjust.works
          link
          fedilink
          arrow-up
          5
          ·
          6 months ago

          Makes sense considering people who moved from one micro-blogging service to another instead of giving up on the idea completely are probably the ones deeply committed to that flawed idea.

        • Regalia@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          2
          ·
          6 months ago

          Blame the Mastodon team, if you’re not running a fork, you have to go into the source and adjust the character limit manually.

          Nobody has to do it like this, Mastodon supports longer posts since other servers and clients support more, it’s seemingly just a choice from upstream.

      • UID_Zero@infosec.pub
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 months ago

        I admit, I’m not a big fan of putting more functionality into systemd (or just of systemd in general), but that is a well-reasoned argument for having sudo live in the init system.