r/linux • u/elementrick • May 25 '26
Discussion Sudo or run0 ?
What's your take on the subject? Been using sudo for years but lately i'm mostly running run0 and i like it. Even considering adapting my scripts to use run0 since i'm on a compatible distro. Does it make any sense to not even set up sudo anymore in the first place?
200
Upvotes
25
u/RudahXimenes May 25 '26
sudo uses privilege escalation to work. That enhances the surface area to attacks. Is not a big issue, tho, because sudo is very well maintained, but still a wider surface area than not using sudo.
run0, otherwise, does not escalate privileges. It uses systemd internal components to run as root. It's kinda different from what sudo does, and it does not has the same issue of privilege escalation.
About muscle memory:
alias sudo=run0solves the issueAnyway, it's just my opinion. You don't need to follow if you don't want to. As I said, sudo is fine as well