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.
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.
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.
Does the size of a 6kb program really make that much of a difference?
Side note: If I’m reading this right (ignoring dependencies) sudo is 6kb while doas is 14kb.
6,054.0 kB, not 6 vs 14.0 kB
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
Less lines of code needed means less chances of errors and potential vulnerabilities (if number and quality of eyeballs were the same)
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).
Sure, I was just speaking in general.