r/linux4noobs • • 1d 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? :} ?

2 Upvotes

5 comments sorted by

4

u/SalimNotSalim 9h ago

sudo and doas are both privilege escalation utilities, but doas is simpler with fewer features.

It really doesn't matter which one you use on a personal computer.

2

u/ReplyBig6703 9h ago

Oh, thank you so much sir 😃

1

u/Quietus87 4h ago

<puts on Yoda mask> "There is another."

There is also run0 of systemd, but I started with sudo 20 years ago and will probably die using sudo. Never bothered checking the other options.

1

u/pp4mnkreddit 4h 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/AiwendilH 1h ago

Debian's opendoas package packages https://github.com/Duncaen/OpenDoas which hasn't seen any activity in the last 4 years. I would really recommend avoiding doas on linux if possible.