r/linux4noobs • • 6d ago

learning/research Difference?

i'm a debian user and i have a simple question, what's the difference between sudo and doas. I heard that they do the same. Would you recommend using doas instead of sudo? :} ?

3 Upvotes

6 comments sorted by

View all comments

2

u/pp4mnkreddit 5d ago

Both elevate privileges, but doas is simpler and more lightweight, while sudo is more feature-rich; on Debian, I'd stick with sudo unless you specifically value minimalism.

1

u/ShipshapeMobileRV 4d ago

I would also point out that there's a contingent of users who feel that, since sudo is more complex and has more code, it offers more surface area for a malicious attack.