• MonkderDritte@feddit.de
    link
    fedilink
    arrow-up
    2
    arrow-down
    7
    ·
    edit-2
    2 years ago

    Sudo and doas are 1000x (in loc) more complex than they need to be for destop pc. Yet they are always default installed and some tools even expect them.

    edit: didn’t know that doas is that small. I thought it has ~1/10 of sudo’s code but it’s actually ~2k vs. 132k of sudo.

      • NekkoDroid@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        2 years ago

        doas is relativly simple (a few hundred LOC), especially compared to sudo. The main benefit of run0 over doas is that it isn’t a SUID binary, they are similary complex.

      • MonkderDritte@feddit.de
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        I use rdo and ssu, each with a bit over 100 loc C code. Though they both have their own strong and weak points, i’m sure there are other similiar tools around.